mirror of
https://github.com/NationalSecurityAgency/ghidra
synced 2024-10-03 00:44:52 +00:00
fix NPE LocalFileChooserModel
This commit is contained in:
parent
069c943d30
commit
351e121268
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue