fix bugs
This commit is contained in:
@@ -40,6 +40,7 @@ class ASysCore implements ICore {
|
|||||||
|
|
||||||
File libsDir = new File(directory);
|
File libsDir = new File(directory);
|
||||||
String[] jarsList = libsDir.list();
|
String[] jarsList = libsDir.list();
|
||||||
|
if (jarsList != null) {
|
||||||
for (String jar : jarsList) {
|
for (String jar : jarsList) {
|
||||||
if (!jar.endsWith(".jar")) continue;
|
if (!jar.endsWith(".jar")) continue;
|
||||||
try {
|
try {
|
||||||
@@ -50,6 +51,7 @@ class ASysCore implements ICore {
|
|||||||
logger.error(String.format("Error load jar \"%s/%s\"", directory, jar), e);
|
logger.error(String.format("Error load jar \"%s/%s\"", directory, jar), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return bundlesList;
|
return bundlesList;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user