Skip to content
Snippets Groups Projects
Commit b870c737 authored by Srinivasan Ramasubramanian's avatar Srinivasan Ramasubramanian
Browse files

Fix a potential null pointer exception while sending discovery messages.

parent 954c0820
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