1
0
Selaa lähdekoodia

Fixed minor issue with function calls

return null when application of function is null
Christophe Debruyne 7 vuotta sitten
vanhempi
commit
2733b46a11
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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();
 	}
 
 	/**