mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
GP-5790: Fix NPE on "Select Current Module" when cursor is not in a module.
This commit is contained in:
parent
2727715539
commit
044bd03ccb
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue