fix NPE LocalFileChooserModel

This commit is contained in:
oldshensheep 2023-07-12 23:54:29 +08:00
parent 069c943d30
commit 351e121268

View file

@ -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();
}