Skip to content
Snippets Groups Projects
Commit 16bfdd8b authored by Kanzhe Jiang's avatar Kanzhe Jiang
Browse files

Fixed BSC-1941. Make sure switch reference is not null

parent d0a3bbfb
No related branches found
No related tags found
No related merge requests found
......@@ -1394,6 +1394,11 @@ public class Controller implements IFloodlightProviderService,
@Override
public boolean injectOfMessage(IOFSwitch sw, OFMessage msg,
FloodlightContext bc) {
if (sw == null) {
log.info("Failed to inject OFMessage {} onto a null switch", msg);
return false;
}
// FIXME: Do we need to be able to inject messages to switches
// where we're the slave controller (i.e. they're connected but
// not active)?
......
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