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

@@ -1472,8 +1472,9 @@ public class HueMulator {
log.warn("Call Items type is null <<<" + callItems[i] + ">>>"); 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 + ">>>"); log.warn("No call items were available: <<<" + url + ">>>");
}
return responseString; return responseString;
} }