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

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
pull/1950/head
Christoph Weitkamp 2020-12-16 18:59:28 +01:00 committed by GitHub
parent ad189bd4f1
commit 397ebaab64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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());