Skip to content
Snippets Groups Projects
Commit 0807ef51 authored by Rob Adams's avatar Rob Adams
Browse files

Fix null pointer exception

parent 0fca30b3
No related branches found
No related tags found
No related merge requests found
......@@ -243,9 +243,10 @@ public class DeviceManagerImpl implements
if (ts == null)
return 0;
long et = ts.getTime();
if (topology.
isBroadcastDomainPort(e.getSwitchDPID(),
e.getSwitchPort().shortValue())) {
Long dpid = e.getSwitchDPID();
Integer port = e.getSwitchPort();
if (dpid != null && port != null &&
topology.isBroadcastDomainPort(dpid, port.shortValue())) {
return et - NBD_TO_BD_TIMEDIFF_MS;
}
return et;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment