Merge "Bug 1380 - Fix NullPointerException when match is null"
authorDevin Avery <devin.avery@brocade.com>
Thu, 17 Jul 2014 14:12:46 +0000 (14:12 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 17 Jul 2014 14:12:46 +0000 (14:12 +0000)
opendaylight/md-sal/statistics-manager/src/main/java/org/opendaylight/controller/md/statistics/manager/FlowComparator.java

index af61db1a8096874945fe92f7fc5478c948b0f5da..b1db280c2472802aed2e97ce525422308eca3b12 100644 (file)
@@ -95,6 +95,8 @@ final class FlowComparator {
         if (statsFlow == storedFlow) {
             return true;
         }
+        if (storedFlow == null && statsFlow != null) return false;
+        if (statsFlow == null && storedFlow != null) return false;
         if (storedFlow.getClass() != statsFlow.getClass()) {
             return false;
         }