Skip to content
Snippets Groups Projects
Commit 4a79882a authored by abat's avatar abat
Browse files

Merge into master from pull request #304:

Fix a potential null pointer exception while sending discovery messages. (https://github.com/floodlight/floodlight/pull/304)
parents 954c0820 b870c737
No related branches found
No related tags found
No related merge requests found
......@@ -360,6 +360,13 @@ IFloodlightModule, IInfoProvider, IHAListener {
}
OFPhysicalPort ofpPort = iofSwitch.getPort(port);
if (ofpPort == null) {
if (log.isTraceEnabled()) {
log.trace("Null physical port. sw={}, port={}", sw, port);
}
return;
}
if (isLLDPSuppressed(sw, port)) {
/* Dont send LLDPs out of this port as suppressLLDPs set
*
......
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