Fixed NullPointerException 78/4178/1
authorDeepthi V V <deepthi.v.v@ericsson.com>
Mon, 13 Jan 2014 11:41:09 +0000 (17:11 +0530)
committerDeepthi V V <deepthi.v.v@ericsson.com>
Mon, 13 Jan 2014 11:41:09 +0000 (17:11 +0530)
Signed-off-by: Deepthi V V <deepthi.v.v@ericsson.com>
openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/match/MatchConvertorImpl.java

index 90080bae147e5e936b197d28992f54cd0b0033d5..38bae864fc763076aa7a0effb1c6646477aa6937 100644 (file)
@@ -1090,7 +1090,7 @@ public class MatchConvertorImpl implements MatchConvertor<List<MatchEntries>> {
         matchEntriesBuilder.setOxmClass(OpenflowBasicClass.class);
         matchEntriesBuilder.setOxmMatchField(VlanVid.class);
         VlanVidMatchEntryBuilder vlanVidBuilder = new VlanVidMatchEntryBuilder();
-        if (vlanId.isVlanIdPresent() == true) {
+        if (vlanId.isVlanIdPresent() == Boolean.TRUE) {
             setCfiBit = true;
             if (vlanId.getVlanId() != null) {
                 vidEntryValue = vlanId.getVlanId().getValue();