onos-6310:- avoid Null pointer in protocol TL1Controller method disconnectDevice

Change-Id: I1e6cd1c7b63747978b1acb95bd56af40538e89bf
This commit is contained in:
rohitsharan 2017-04-17 21:16:13 +05:30
parent be94db97c4
commit 1afdb3fa79

View File

@ -211,9 +211,9 @@ public class DefaultTl1Controller implements Tl1Controller {
Channel channel = device.channel();
if (channel != null) {
channel.close();
msgMap.remove(channel);
}
msgMap.remove(channel);
device.disconnect();
tl1Listeners.forEach(l -> l.deviceDisconnected(deviceId));
}