Skip to content

Commit 655a800

Browse files
authored
Merge pull request Konloch#195 from martoreto/patch-1
Fixed NPE with fat Jar and clean working folder
2 parents 161ebae + 1a648c9 commit 655a800

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/the/bytecode/club/bootloader/Boot.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public static void populateUrlList() throws Exception {
323323
}
324324

325325
public static void populateLibsDirectory() {
326-
if (libsDir() != null)
326+
if (libsDir() != null && libsDir().exists())
327327
for (File f : libsDir().listFiles()) {
328328
libsList.add(f.getName());
329329
libsFileList.add(f.getAbsolutePath());
@@ -482,4 +482,4 @@ public static void checkKrakatau() {
482482
}
483483
}
484484
}
485-
}
485+
}

0 commit comments

Comments
 (0)