mirror of
https://github.com/NationalSecurityAgency/ghidra
synced 2024-08-28 13:30:21 +00:00
GP-2604: Fixing issue with empty program list
This commit is contained in:
parent
bb68f37885
commit
a64afa37a7
|
@ -135,6 +135,9 @@ public abstract class AbstractLibrarySupportLoader extends AbstractProgramLoader
|
||||||
@Override
|
@Override
|
||||||
protected void postLoadProgramFixups(List<LoadedProgram> loadedPrograms, List<Option> options,
|
protected void postLoadProgramFixups(List<LoadedProgram> loadedPrograms, List<Option> options,
|
||||||
MessageLog messageLog, TaskMonitor monitor) throws CancelledException, IOException {
|
MessageLog messageLog, TaskMonitor monitor) throws CancelledException, IOException {
|
||||||
|
if (loadedPrograms.isEmpty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (isLinkExistingLibraries(options) || isLoadLocalLibraries(options) ||
|
if (isLinkExistingLibraries(options) || isLoadLocalLibraries(options) ||
|
||||||
isLoadSystemLibraries(options)) {
|
isLoadSystemLibraries(options)) {
|
||||||
DomainFolder programFolder = loadedPrograms.get(0).destinationFolder();
|
DomainFolder programFolder = loadedPrograms.get(0).destinationFolder();
|
||||||
|
|
Loading…
Reference in a new issue