Thomas Vachuska
Committed by Gerrit Code Review

ONOS-3346 Fixed NPE when disallowing devices via network configuration.

Change-Id: I88986681e446f2fd298aa5c4d47e709da5be9e52
......@@ -986,6 +986,10 @@ public class GossipDeviceStore
// accept removal request if given timestamp is newer than
// the latest Timestamp from Primary provider
DeviceDescriptions primDescs = getPrimaryDescriptions(descs);
if (primDescs == null) {
return null;
}
Timestamp lastTimestamp = primDescs.getLatestTimestamp();
if (timestamp.compareTo(lastTimestamp) <= 0) {
// outdated event ignore
......