Fix method getFlowEntriesForGroup in forwardingrulesmanager 14/414/1
authorSapan Shah <sapshah@cisco.com>
Fri, 31 May 2013 01:46:40 +0000 (18:46 -0700)
committerSapan Shah <sapshah@cisco.com>
Fri, 31 May 2013 01:46:40 +0000 (18:46 -0700)
Signed-off-by: Sapan Shah <sapshah@cisco.com>
opendaylight/forwardingrulesmanager/implementation/src/main/java/org/opendaylight/controller/forwardingrulesmanager/internal/ForwardingRulesManagerImpl.java

index 4365db3..5fbe12b 100644 (file)
@@ -1041,13 +1041,11 @@ public class ForwardingRulesManagerImpl implements IForwardingRulesManager,
 
     @Override
     public List<FlowEntry> getFlowEntriesForGroup(String policyName) {
-        List<FlowEntry> list = null;
+        List<FlowEntry> list = new ArrayList<FlowEntry>();
         if (this.groupFlows != null && this.groupFlows.containsKey(policyName)) {
-            list = new ArrayList<FlowEntry>();
             for (FlowEntryInstall entries : groupFlows.get(policyName)) {
                 list.add(entries.getOriginal());
             }
-            return new ArrayList<FlowEntry>();
         }
         return list;
     }