mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
Fixed NPE by not calling 'toString()' (#1948)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
+1
-1
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user