mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-24 13:51:27 +02:00
Fix for JIRA issue ONOS-6160. To avoid possible null pointer reference for 'device' object in file 'DeviceManager.java' at line no 574.
Change-Id: I182d2759486ff13e8a01da6783651e2da69267a0
This commit is contained in:
parent
9649cdd515
commit
ddfa8c99bb
@ -570,6 +570,7 @@ public class DeviceManager
|
||||
Device device = getDevice(deviceId);
|
||||
if (device == null) {
|
||||
log.trace("Device not found: {}", deviceId);
|
||||
return;
|
||||
}
|
||||
if ((Device.Type.ROADM.equals(device.type())) ||
|
||||
(Device.Type.OTN.equals(device.type()))) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user