HIGUCHI Yuta
Committed by Gerrit Code Review

Bugfix for DeviceStores

- Should never return null, when return type is a Collection

Change-Id: I85eb27bf702b5e76facf83db29ab264cf85a6755
......@@ -422,7 +422,7 @@ public class ECDeviceStore
// Only forward for ConfigProvider
// Forwarding was added as a workaround for ONOS-490
if (!providerId.scheme().equals("cfg")) {
return null;
return Collections.emptyList();
}
if (master == null) {
return Collections.emptyList();
......
......@@ -586,7 +586,7 @@ public class GossipDeviceStore
// Only forward for ConfigProvider
// Forwarding was added as a workaround for ONOS-490
if (!providerId.scheme().equals("cfg")) {
return null;
return Collections.emptyList();
}
// FIXME Temporary hack for NPE (ONOS-1171).
// Proper fix is to implement forwarding to master on ConfigProvider
......