diff --git a/snaploader/src/main/java/electrostatic4j/snaploader/filesystem/FileLocator.java b/snaploader/src/main/java/electrostatic4j/snaploader/filesystem/FileLocator.java index 810ca8b..c93b3bc 100644 --- a/snaploader/src/main/java/electrostatic4j/snaploader/filesystem/FileLocator.java +++ b/snaploader/src/main/java/electrostatic4j/snaploader/filesystem/FileLocator.java @@ -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!"; } /**