commit | 7b7eabc6f67eb9d1447e24d9d7994e04750414ae | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Wed Jun 10 20:30:19 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Thu Jun 11 17:01:04 2015 +0000 |
tree | e68d0d0b57a0fa76ef0ec696a161b2177696eff2 | |
parent | 8b66a858bd5f5939c4cc0771eecdaa10599dd26d [diff] |
Return empty list instead of null to improve null-safety Change-Id: I27066a21e6acf2a0d7c7037015d19a870c6a4ae9
diff --git a/core/store/dist/src/main/java/org/onosproject/store/device/impl/GossipDeviceStore.java b/core/store/dist/src/main/java/org/onosproject/store/device/impl/GossipDeviceStore.java index 0b4e215..d5231be 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/device/impl/GossipDeviceStore.java +++ b/core/store/dist/src/main/java/org/onosproject/store/device/impl/GossipDeviceStore.java
@@ -616,7 +616,7 @@ if (isDeviceRemoved(deviceId, portDescriptions.timestamp())) { log.debug("Ignoring outdated events: {}", portDescriptions); - return null; + return Collections.emptyList(); } DeviceDescriptions descs = descsMap.get(providerId);