commit | d4955ae9e5296e397a5c3696c44ec47418625985 | [log] [tgz] |
---|---|---|
author | Thomas Vachuska <tom@onlab.us> | Tue Aug 23 14:56:37 2016 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Tue Aug 23 22:19:12 2016 +0000 |
tree | 6233415d5727398caaebf42c2103d6db7ccb853e | |
parent | 2f6f907260d57e068f17c69e4a3d716ea6d76cd2 [diff] [blame] |
Preventing NPEs in stores via notifyDelegate Change-Id: I1c4b83c6a03b1f69a3ea1329724a7208d47cefa4
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 faf7e50..c81d7ab 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
@@ -1823,7 +1823,7 @@ if (event.type() == PUT) { Device device = devices.get(event.key()); if (device != null) { - delegate.notify(new DeviceEvent(PORT_STATS_UPDATED, device)); + notifyDelegate(new DeviceEvent(PORT_STATS_UPDATED, device)); } } }