diff --git a/ngrinder-controller/src/main/java/org/ngrinder/infra/init/ClassPathInit.java b/ngrinder-controller/src/main/java/org/ngrinder/infra/init/ClassPathInit.java index 8f2e90919..e686c6f2a 100644 --- a/ngrinder-controller/src/main/java/org/ngrinder/infra/init/ClassPathInit.java +++ b/ngrinder-controller/src/main/java/org/ngrinder/infra/init/ClassPathInit.java @@ -46,6 +46,9 @@ public void init() { final String systemClasspath = System.getProperty("java.class.path", StringUtils.EMPTY); for (String pathEntry : systemClasspath.split(File.pathSeparator)) { final File parentFile = ObjectUtils.defaultIfNull(new File(pathEntry).getParentFile(), new File(".")); + if (!parentFile.isDirectory()) { + continue; + } final Collection childrenFileList = FileUtils.listFiles(parentFile, new String[]{"jar"}, false); for (File candidate : childrenFileList) { final String name = candidate.getName();