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

Fix a posisble NPE in LinkDiscoveryManager.

parent 9c9d3546
No related branches found
No related tags found
No related merge requests found
......@@ -478,6 +478,7 @@ IFloodlightModule, IInfoProvider, IHAListener {
// Send standard LLDPs
for (long sw: switches) {
IOFSwitch iofSwitch = floodlightProvider.getSwitches().get(sw);
if (iofSwitch == null) continue;
if (iofSwitch.getEnabledPorts() != null) {
for (OFPhysicalPort p : iofSwitch.getEnabledPorts()) {
// sends only forward LLDPs and BDDPs
......@@ -488,6 +489,7 @@ IFloodlightModule, IInfoProvider, IHAListener {
for (long sw: switches) {
IOFSwitch iofSwitch = floodlightProvider.getSwitches().get(sw);
if (iofSwitch == null) continue;
if (iofSwitch.getEnabledPorts() != null) {
for (OFPhysicalPort p : iofSwitch.getEnabledPorts()) {
// sends only forward LLDPs and BDDPs
......
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