Merge pull request #195 from martoreto/patch-1

Fixed NPE with fat Jar and clean working folder
This commit is contained in:
Kalen (Konloch) Kinloch 2018-03-31 03:39:13 -06:00 committed by GitHub
commit 655a80038b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -323,7 +323,7 @@ public class Boot {
} }
public static void populateLibsDirectory() { public static void populateLibsDirectory() {
if (libsDir() != null) if (libsDir() != null && libsDir().exists())
for (File f : libsDir().listFiles()) { for (File f : libsDir().listFiles()) {
libsList.add(f.getName()); libsList.add(f.getName());
libsFileList.add(f.getAbsolutePath()); libsFileList.add(f.getAbsolutePath());
@ -482,4 +482,4 @@ public class Boot {
} }
} }
} }
} }