Do not sort flows to fix an NPE
diff --git a/src/main/java/net/floodlightcontroller/flowcache/FlowManager.java b/src/main/java/net/floodlightcontroller/flowcache/FlowManager.java
index 2b23e18..e37b82a 100644
--- a/src/main/java/net/floodlightcontroller/flowcache/FlowManager.java
+++ b/src/main/java/net/floodlightcontroller/flowcache/FlowManager.java
@@ -1041,14 +1041,14 @@
return flowPaths;
}
- Collections.sort(allFlows);
+// Collections.sort(allFlows);
for (FlowPath flow : allFlows) {
// start from desired flowId
- if (flow.flowId().value() < flowId.value()) {
- continue;
- }
+ //if (flow.flowId().value() < flowId.value()) {
+ // continue;
+ //}
// Summarize by making null flow entry fields that are not relevant to report
for (FlowEntry flowEntry : flow.dataPath().flowEntries()) {