Skip to content
Snippets Groups Projects
Commit 094736d3 authored by abat's avatar abat
Browse files

Merge into master from pull request #272:

Fix a posisble NPE in LinkDiscoveryManager. (https://github.com/floodlight/floodlight/pull/272)
parents 9c9d3546 12a8bc24
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