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; }