Skip to content
Snippets Groups Projects
Commit b2fef8b3 authored by Kuang-Ching Wang's avatar Kuang-Ching Wang
Browse files

Merge pull request #391 from kwanggithub/master

Fix NPE in LoadBalancer
parents 5e7ef76e 8c899370
No related branches found
No related tags found
No related merge requests found
...@@ -397,7 +397,10 @@ public class LoadBalancer implements IFloodlightModule, ...@@ -397,7 +397,10 @@ public class LoadBalancer implements IFloodlightModule,
if (srcDevice != null && dstDevice != null) if (srcDevice != null && dstDevice != null)
break; break;
} }
} }
// srcDevice and/or dstDevice is null, no route can be pushed
if (srcDevice == null || dstDevice == null) return;
Long srcIsland = topology.getL2DomainId(sw.getId()); Long srcIsland = topology.getL2DomainId(sw.getId());
......
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