FIX-FOR-ONOS-5938

Change-Id: Ica62bac9b37e0d970f1995983c25961d050985e0
diff --git a/core/net/src/main/java/org/onosproject/net/statistic/impl/FlowStatisticManager.java b/core/net/src/main/java/org/onosproject/net/statistic/impl/FlowStatisticManager.java
index f77a9ea..1287211 100644
--- a/core/net/src/main/java/org/onosproject/net/statistic/impl/FlowStatisticManager.java
+++ b/core/net/src/main/java/org/onosproject/net/statistic/impl/FlowStatisticManager.java
@@ -279,11 +279,12 @@
 
         // current and previous set is not empty!
         boolean isAllInstType = (instType == null ? true : false); // null is all inst type
+        boolean isAllLiveType = (liveType == null ? true : false); // null is all live type
 
         Map<FlowRule, FlowEntry> currentMap;
         Map<FlowRule, FlowEntry> previousMap;
 
-        if (isAllInstType) {
+        if (isAllLiveType) {
             currentMap = typedStatistics.currentAll();
             previousMap = typedStatistics.previousAll();
         } else {