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:
nitinanand 2017-03-24 16:14:23 +05:30 committed by Ray Milkey
parent 9649cdd515
commit ddfa8c99bb

View File

@ -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()))) {