Bug: com.bwssystems.HABridge.plugins.hal.HalHome.addHalDevices(List,

List, String) has Boolean return type and returns explicit null
This commit is contained in:
gaudryc
2019-01-06 20:08:38 +01:00
parent 07fa11b9ff
commit f90f39e5f1

View File

@@ -104,7 +104,7 @@ public class HalHome implements Home {
private Boolean addHalDevices(List<HalDevice> theDeviceList, List<HalDevice> theSourceList, String theKey) { private Boolean addHalDevices(List<HalDevice> theDeviceList, List<HalDevice> theSourceList, String theKey) {
if(!validHal) if(!validHal)
return null; return false;
Iterator<HalDevice> devices = theSourceList.iterator(); Iterator<HalDevice> devices = theSourceList.iterator();
while(devices.hasNext()) { while(devices.hasNext()) {
HalDevice theDevice = devices.next(); HalDevice theDevice = devices.next();