Skip to content

Commit c093400

Browse files
Use first object PythonScriptRunner object found
1 parent 0f5a3d3 commit c093400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/scijava/plugins/scripting/python/PythonScriptEngine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public PythonScriptEngine(Context context) {
6868

6969
@Override
7070
public Object eval(String script) throws ScriptException {
71-
return objectService.getObjects(PythonScriptRunner.class).stream().findAny().get().run(script, engineScopeBindings, scriptContext);
71+
return objectService.getObjects(PythonScriptRunner.class).get(0).run(script, engineScopeBindings, scriptContext);
7272
}
7373

7474
@Override

0 commit comments

Comments
 (0)