Merge pull request #195 from martoreto/patch-1
Fixed NPE with fat Jar and clean working folder
This commit is contained in:
commit
655a80038b
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue