mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 08:27:45 +00:00
ScriptController:
-Fixed engine test null pointer exception.
This commit is contained in:
1 parent
958aeea46a
commit
3152cf2379
1 file changed
+4
-7
@@ -70,13 +70,10 @@ public class ScriptController {
|
||||
ScriptEngine scriptEngine = fac.getScriptEngine();
|
||||
try {
|
||||
scriptEngine.put("$RunTest",null);
|
||||
} catch (Exception e) {
|
||||
continue;
|
||||
}
|
||||
|
||||
String ext = "." + fac.getExtensions().get(0).toLowerCase();
|
||||
LogWriter.info(fac.getLanguageName() + ": " + ext);
|
||||
languages.put(fac.getLanguageName(), ext);
|
||||
String ext = "." + fac.getExtensions().get(0).toLowerCase();
|
||||
LogWriter.info("Engine " + fac.getEngineName() + " running " + fac.getLanguageName() + " with extension: " + ext);
|
||||
languages.put(fac.getLanguageName(), ext);
|
||||
} catch (Exception ignored) {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user