Skip to content
Snippets Groups Projects
Commit 92116b67 authored by Munish Mehta's avatar Munish Mehta
Browse files

Add null pointer check to prevent exception

parent 5129beb5
No related branches found
No related tags found
No related merge requests found
......@@ -357,6 +357,9 @@ IFloodlightModule, IInfoProvider, IHAListener {
boolean isReverse) {
IOFSwitch iofSwitch = floodlightProvider.getSwitches().get(sw);
if (iofSwitch == null) {
return;
}
OFPhysicalPort ofpPort = iofSwitch.getPort(port);
if (isLLDPSuppressed(sw, port)) {
......
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