From 2f38b8743ab18e81e350822327cbef3baae42ee0 Mon Sep 17 00:00:00 2001 From: lizhi Date: Fri, 17 Dec 2021 16:58:32 +0800 Subject: [PATCH] add one function and change private to public --- src/main/java/org/bdware/sc/engine/DesktopEngine.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/bdware/sc/engine/DesktopEngine.java b/src/main/java/org/bdware/sc/engine/DesktopEngine.java index c0279dd..ed837e7 100644 --- a/src/main/java/org/bdware/sc/engine/DesktopEngine.java +++ b/src/main/java/org/bdware/sc/engine/DesktopEngine.java @@ -228,6 +228,7 @@ public class DesktopEngine extends JSEngine { public Object invokeFunction(String functionName, Object... args) { Invocable cal = engine; + try { return cal.invokeFunction(functionName, args); } catch (ScriptException e) { @@ -235,6 +236,7 @@ public class DesktopEngine extends JSEngine { } catch (NoSuchMethodException e) { e.printStackTrace(); } + return null; }