GP-2604: Fixing issue with empty program list

This commit is contained in:
Ryan Kurtz 2022-10-03 09:29:46 -04:00
parent bb68f37885
commit a64afa37a7

View File

@ -135,6 +135,9 @@ public abstract class AbstractLibrarySupportLoader extends AbstractProgramLoader
@Override
protected void postLoadProgramFixups(List<LoadedProgram> loadedPrograms, List<Option> options,
MessageLog messageLog, TaskMonitor monitor) throws CancelledException, IOException {
if (loadedPrograms.isEmpty()) {
return;
}
if (isLinkExistingLibraries(options) || isLoadLocalLibraries(options) ||
isLoadSystemLibraries(options)) {
DomainFolder programFolder = loadedPrograms.get(0).destinationFolder();