Committed by
Gerrit Code Review
DistributedFlowRuleStore: getFlowEntries should never return null
resoves ONOS-478 Change-Id: I3fd84088afd9c9f616858037829cac70708cc66e
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -330,7 +330,7 @@ public class DistributedFlowRuleStore | ... | @@ -330,7 +330,7 @@ public class DistributedFlowRuleStore |
| 330 | } catch (IOException | TimeoutException | ExecutionException | InterruptedException e) { | 330 | } catch (IOException | TimeoutException | ExecutionException | InterruptedException e) { |
| 331 | log.warn("Unable to fetch flow store contents from {}", replicaInfo.master().get()); | 331 | log.warn("Unable to fetch flow store contents from {}", replicaInfo.master().get()); |
| 332 | } | 332 | } |
| 333 | - return null; | 333 | + return Collections.emptyList(); |
| 334 | } | 334 | } |
| 335 | 335 | ||
| 336 | private Set<FlowEntry> getFlowEntriesInternal(DeviceId deviceId) { | 336 | private Set<FlowEntry> getFlowEntriesInternal(DeviceId deviceId) { | ... | ... |
-
Please register or login to post a comment