mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-27 21:35:44 +08:00
GP-0 added guard for empty ProgramLocator list when opening programs.
This commit is contained in:
+3
-1
@@ -661,7 +661,9 @@ public class ProgramManagerPlugin extends Plugin implements ProgramManager, Opti
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void openProgramLocations(List<ProgramLocator> locators) {
|
private void openProgramLocations(List<ProgramLocator> locators) {
|
||||||
|
if (locators.isEmpty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
Set<ProgramLocator> toOpen = new LinkedHashSet<>(locators); // preserve order
|
Set<ProgramLocator> toOpen = new LinkedHashSet<>(locators); // preserve order
|
||||||
|
|
||||||
// ensure already opened programs are visible in the tool
|
// ensure already opened programs are visible in the tool
|
||||||
|
|||||||
Reference in New Issue
Block a user