-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working