Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Complete
-
Affects Version/s: None
-
Component/s: Scripting Support
-
Labels:
Description
AbstractScriptExecutor
if (variables != null) { result = scriptEngine.eval(script, new SimpleBindings(variables)); } else { result = scriptEngine.eval(script); }
When the first branch of the `if` test is taken, the result variable is added to the `SimpleBindings` object, and is not added to the engine scope map.
Even though, in your case, variables is empty, we still call the first branch.