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

Merge pull request #194 from kjiang/master

Fix a NPE in injectOFMessage
parents 693443cf 16bfdd8b
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