Skip to content

Commit

Permalink
Fixes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto-Gentili committed Aug 31, 2024
1 parent 9411e95 commit 6331c73
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,14 @@ public boolean hasBeenCompletelyLoaded(String path) {
FileSystemItem pathFIS = FileSystemItem.ofPath(path);
for (String loadedPath : ClassLoaders.getAllLoadedPaths(ClassLoaders.getParent(this))) {
FileSystemItem loadedPathFIS = FileSystemItem.ofPath(loadedPath);
if (pathFIS.isChildOf(loadedPathFIS) || pathFIS.equals(loadedPathFIS)) {
return true;
try {
if (pathFIS.isChildOf(loadedPathFIS) || pathFIS.equals(loadedPathFIS)) {
return true;
}
} catch (NullPointerException exc) {
if (loadedPathFIS.exists() && pathFIS.exists()) {
throw exc;
}
}
}
return false;
Expand Down

0 comments on commit 6331c73

Please sign in to comment.