Thomas Vachuska
Committed by Gerrit Code Review

Fixed an NPE in DeviceManager provider service.

Change-Id: I9afc5e715ee88855384652dc81677b3de5b89300
......@@ -417,8 +417,10 @@ public class DeviceManager
.collect(Collectors.toList());
List<DeviceEvent> events = store.updatePorts(this.provider().id(),
deviceId, portDescriptions);
for (DeviceEvent event : events) {
post(event);
if (events != null) {
for (DeviceEvent event : events) {
post(event);
}
}
}
......