Fixed NPE by not calling 'toString()' (#1948)

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
Christoph Weitkamp
2020-12-16 18:59:28 +01:00
committed by GitHub
parent ad189bd4f1
commit 397ebaab64
@@ -55,7 +55,7 @@ public class ScriptConditionHandler extends AbstractScriptModuleHandler<Conditio
if (returnVal instanceof Boolean) {
result = (boolean) returnVal;
} else {
logger.error("Script did not return a boolean value, but '{}'", returnVal.toString());
logger.error("Script did not return a boolean value, but '{}'", returnVal);
}
} catch (ScriptException e) {
logger.error("Script execution failed: {}", e.getMessage());