mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-13 00:08:46 -05:00
GP-5790: Fix NPE on "Select Current Module" when cursor is not in a module.
This commit is contained in:
+4
@@ -1113,6 +1113,10 @@ public class DebuggerModulesProvider extends ComponentProviderAdapter
|
||||
}
|
||||
bestModule = module;
|
||||
}
|
||||
if (bestModule == null) {
|
||||
setSelectedModules(Set.of());
|
||||
return;
|
||||
}
|
||||
if (bestModule.getSections(snap).isEmpty()) {
|
||||
setSelectedModules(Set.of(bestModule));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user