Skip to content
Snippets Groups Projects
Commit 43c23b9f authored by Gregor Maier's avatar Gregor Maier
Browse files

Fix null pointer exception in logging code

parent bacac89e
No related branches found
No related tags found
No related merge requests found
......@@ -846,7 +846,8 @@ public class DeviceManagerImpl implements IDeviceManagerService, IOFMessageListe
if (log.isTraceEnabled()) {
long dstAddr = Ethernet.toLong(match.getDataLayerDestination());
Device dstDev = devMgrMaps.getDeviceByDataLayerAddr(dstAddr);
log.trace(" Src.AttachmentPts: {}", device.getAttachmentPointsMap().keySet());
if (device != null)
log.trace(" Src.AttachmentPts: {}", device.getAttachmentPointsMap().keySet());
if (dstDev != null)
log.trace(" Dst.AttachmentPts: {}", dstDev.getAttachmentPointsMap().keySet());
}
......
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