瀏覽代碼

Fixed minor issue with function calls

return null when application of function is null
Christophe Debruyne 7 年之前
父節點
當前提交
2733b46a11
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/r2rml/function/JSEnv.java

+ 1 - 1
src/r2rml/function/JSEnv.java

@@ -45,7 +45,7 @@ public class JSEnv {
 			throws NoSuchMethodException, ScriptException {
 		Invocable invokeEngine = (Invocable) engine;
 		Object o = invokeEngine.invokeFunction(functionName, parameters);
-		return o.toString();
+		return o == null ? null : o.toString();
 	}
 
 	/**