Committed by
Gerrit Code Review
Fix one of the causes of ONOS-3954
Return statement was missing on an allocation failure Change-Id: If6107462061ef56cd45ccb9e6d67d47f6aae9f43
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -115,7 +115,7 @@ public class PathCompiler<T> { | ... | @@ -115,7 +115,7 @@ public class PathCompiler<T> { |
115 | List<ResourceAllocation> allocations = | 115 | List<ResourceAllocation> allocations = |
116 | creator.resourceService().allocate(intent.id(), ImmutableList.copyOf(resources)); | 116 | creator.resourceService().allocate(intent.id(), ImmutableList.copyOf(resources)); |
117 | if (allocations.isEmpty()) { | 117 | if (allocations.isEmpty()) { |
118 | - Collections.emptyMap(); | 118 | + return Collections.emptyMap(); |
119 | } | 119 | } |
120 | 120 | ||
121 | return vlanIds; | 121 | return vlanIds; | ... | ... |
-
Please register or login to post a comment