Explorar el Código

Fixed minor issue with function calls

return null when application of function is null
Christophe Debruyne hace 7 años
padre
commit
2733b46a11
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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();
 	}
 
 	/**