From 00021297c160e6445ee10c902d85e548112b491c Mon Sep 17 00:00:00 2001 From: dragonmacher <48328597+dragonmacher@users.noreply.github.com> Date: Sat, 24 Feb 2024 17:20:23 -0500 Subject: [PATCH] Test fixes --- .../main/java/docking/widgets/filechooser/DirectoryList.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ghidra/Framework/Docking/src/main/java/docking/widgets/filechooser/DirectoryList.java b/Ghidra/Framework/Docking/src/main/java/docking/widgets/filechooser/DirectoryList.java index df9251c326..614b249ccd 100644 --- a/Ghidra/Framework/Docking/src/main/java/docking/widgets/filechooser/DirectoryList.java +++ b/Ghidra/Framework/Docking/src/main/java/docking/widgets/filechooser/DirectoryList.java @@ -72,8 +72,8 @@ class DirectoryList extends GList implements GhidraFileChooserDirectoryMod return; // UI is being updated } - FileListCellRenderer cellRenderer = (FileListCellRenderer) getCellRenderer(); - if (cellRenderer == null) { + ListCellRenderer renderer = getCellRenderer(); + if (!(renderer instanceof FileListCellRenderer cellRenderer)) { return; // initializing }