Affected version
HEAD
Bug description
Problem here:
protected Object eval(ScriptEngine engine, ScriptContext context) throws ScriptException {
try (InputStream is = this.getClass().getClassLoader().getResourceAsStream(resourceName);
Reader reader = new InputStreamReader(is)) {
return engine.eval(reader, context);
} catch (IOException ex) {
throw new UncheckedIOException(resourceName + " caused:", ex);
}
}
probably catch the NullPointerException and convert it to a ScriptException, or maybe do that in the calling method
Affected version
HEAD
Bug description
Problem here:
probably catch the NullPointerException and convert it to a ScriptException, or maybe do that in the calling method