Open garth0jsonar opened 3 years ago
evaluating this:
var foo="dfsf";
I get this:
00:07:19.969 AWT-EventQueue-0 UtilSwing.eval: rt ex=java.lang.NullPointerException java.lang.NullPointerException at ch.obermuhlner.scriptengine.jshell.JShellCompiledScript.setBindingsValue(JShellCompiledScript.java:84)
this is because global bindings are null there:
if (!engineBindings.containsKey(name) && globalBindings.containsKey(name)) {
1.1.0 , latest adopt jdk 11. Suggest always init globalBindings.
In JShellCompiledScript (35):
Bindings globalBindings = context.getBindings(ScriptContext.GLOBAL_SCOPE);
can return null.
evaluating this:
I get this:
this is because global bindings are null there:
1.1.0 , latest adopt jdk 11. Suggest always init globalBindings.