GP-4050: Making

AbstractLibrarySupportLoader.getSystemLibrarySearchPaths() more robust
This commit is contained in:
Ryan Kurtz
2023-12-13 09:12:52 -05:00
parent ba3f292ab4
commit 630f9f1704

View File

@@ -1111,8 +1111,11 @@ public abstract class AbstractLibrarySupportLoader extends AbstractProgramLoader
if (isLoadSystemLibraries(options) || shouldSearchAllPaths(options)) {
List<Path> searchPaths = new ArrayList<>();
for (String str : LibrarySearchPathManager.getLibraryPathsList()) {
if (str.isBlank()) {
continue;
}
try {
Path path = Path.of(str).normalize();
Path path = Path.of(str.trim()).normalize();
if (path.isAbsolute() && Files.exists(path)) {
searchPaths.add(path);
}