Skip to content

Commit

Permalink
FileLocator#classPathRoutine(): assertion against null pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
pavly-gerges committed Aug 7, 2024
1 parent 100aad7 commit b1b4342
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ protected void classPathRoutine() {
// getClassLoader() is invoked on them, it will return "null" pointer
// indicating the invalidity of active loaders
this.fileInputStream = getClass().getClassLoader().getResourceAsStream(filePath);
assert (this.fileInputStream != null):
"Classpath Routine failed: the file is not in the classpath!";
}

/**
Expand Down

0 comments on commit b1b4342

Please sign in to comment.