mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-16 18:24:36 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user