Fix NPE in FlowProgrammerService in openflow plugin 20/2920/1
authorAlessandro Boch <aboch@cisco.com>
Wed, 20 Nov 2013 16:23:50 +0000 (08:23 -0800)
committerAlessandro Boch <aboch@cisco.com>
Wed, 20 Nov 2013 16:28:21 +0000 (08:28 -0800)
commitf853f4cb2c1bd86ec2f227d34fad097073e5c1ee
tree495bbdc485d38a38aebeeed17de5f7c2c4e8e27a
parent5da475147b19f8d9e601813da1e356f2c677d131
Fix NPE in FlowProgrammerService in openflow plugin

- In default container have installed flows matching on input port.
  When creating the first container, default container flows are removed.
  On switch notification about flow removal, a NPE is hit in FlowProgrammerService
  because of the assumption the newly created container already has ports assigned.

Change-Id: I645684f9bc47ea26d1fe9f45383343354fb3df6a
Signed-off-by: Alessandro Boch <aboch@cisco.com>
opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/internal/FlowProgrammerService.java