Committed by
Gerrit Code Review
Fixed an NPE in DeviceManager provider service.
Change-Id: I9afc5e715ee88855384652dc81677b3de5b89300
Showing
1 changed file
with
2 additions
and
0 deletions
| ... | @@ -417,10 +417,12 @@ public class DeviceManager | ... | @@ -417,10 +417,12 @@ public class DeviceManager |
| 417 | .collect(Collectors.toList()); | 417 | .collect(Collectors.toList()); |
| 418 | List<DeviceEvent> events = store.updatePorts(this.provider().id(), | 418 | List<DeviceEvent> events = store.updatePorts(this.provider().id(), |
| 419 | deviceId, portDescriptions); | 419 | deviceId, portDescriptions); |
| 420 | + if (events != null) { | ||
| 420 | for (DeviceEvent event : events) { | 421 | for (DeviceEvent event : events) { |
| 421 | post(event); | 422 | post(event); |
| 422 | } | 423 | } |
| 423 | } | 424 | } |
| 425 | + } | ||
| 424 | 426 | ||
| 425 | @Override | 427 | @Override |
| 426 | public void portStatusChanged(DeviceId deviceId, | 428 | public void portStatusChanged(DeviceId deviceId, | ... | ... |
-
Please register or login to post a comment