GP-5825: Fixing issue with prior commit

This commit is contained in:
Ryan Kurtz 2025-08-27 10:47:13 -04:00
parent b5bfcc0fbf
commit f57b520837

View file

@ -1124,17 +1124,20 @@ public abstract class AbstractLibrarySupportLoader extends AbstractProgramLoader
if (fsService.isLocal(fsrl)) {
try {
// It might be a container file that we want to look inside of, so probe
if (fsService.getLocalFS().getLocalFile(fsrl).isFile()) {
FileSystemRef fileRef =
fsService.probeFileForFilesystem(fsrl, monitor, null);
if (fileRef != null) {
result.add(new LibrarySearchPath(fileRef, null));
continue;
}
}
}
catch (IOException e) {
log.appendMsg(e.getMessage());
}
}
else {
try (RefdFile fileRef = fsService.getRefdFile(fsrl, monitor)) {
if (fileRef != null) {
result.add(
@ -1145,7 +1148,6 @@ public abstract class AbstractLibrarySupportLoader extends AbstractProgramLoader
log.appendMsg(e.getMessage());
}
}
}
success = true;
}
finally {