Bug: Possible null pointer dereference in

com.bwssystems.HABridge.hue.HueMulator.callUrl(String, DeviceDescriptor,
String, String, String, String, boolean, Integer, Integer, ColorData)
This commit is contained in:
gaudryc
2019-01-06 21:54:23 +01:00
parent 1311d4a68d
commit 14c3614856

View File

@@ -1471,10 +1471,11 @@ public class HueMulator {
else
log.warn("Call Items type is null <<<" + callItems[i] + ">>>");
}
if(callItems.length == 0)
if ((callItems == null) || (callItems.length == 0)) {
log.warn("No call items were available: <<<" + url + ">>>");
}
return responseString;
}
}