mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-26 05:37:32 +08:00
fix NPE LocalFileChooserModel
This commit is contained in:
+3
@@ -260,6 +260,9 @@ public class LocalFileChooserModel implements GhidraFileChooserModel {
|
||||
}
|
||||
|
||||
Icon rootIcon = FS_VIEW.getSystemIcon(root); // possibly a slow call
|
||||
if (rootIcon == null) {
|
||||
rootIcon = PROBLEM_FILE_ICON;
|
||||
}
|
||||
iconMap.put(root, rootIcon);
|
||||
callback.call();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user