- 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>
*/
if (inPort == null
|| container.equals(GlobalConstants.DEFAULT.toString())
- || this.containerToNc.get(container).contains(inPort)) {
+ || (containerToNc.containsKey(container) && containerToNc.get(container).contains(inPort))) {
notifier.flowRemoved(node, flow);
}
}