From: Shigeru Yasuda Date: Tue, 24 May 2016 13:00:16 +0000 (+0900) Subject: Bug 5953: Fixed NPE in FlowRemovedTranslator. X-Git-Tag: release/boron~209^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=7ce18dccbc9cb0ee2e06ba805fcec66e7d291dae;p=openflowplugin.git Bug 5953: Fixed NPE in FlowRemovedTranslator. table-id in OF10 FlowRemoved should be ignored because OF10 FLOW_REMOVED message doesn't contain table ID. Change-Id: I5e9b1a69219b361bbe3e20210ff04221416f1039 Signed-off-by: Shigeru Yasuda --- diff --git a/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/translator/FlowRemovedTranslator.java b/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/translator/FlowRemovedTranslator.java index 956389a103..8ed2f223eb 100644 --- a/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/translator/FlowRemovedTranslator.java +++ b/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/translator/FlowRemovedTranslator.java @@ -30,7 +30,7 @@ public class FlowRemovedTranslator implements MessageTranslatoremptyList()).build()); + builder.setMatch(new MatchBuilder().setMatchEntry(Collections.emptyList()).build()) + .setTableId(new TableId(42l)); } return builder.build(); } -} \ No newline at end of file +}