Sho SHIMIZU
Committed by Gerrit Code Review

Fix one of the causes of ONOS-3954

Return statement was missing on an allocation failure

Change-Id: If6107462061ef56cd45ccb9e6d67d47f6aae9f43
...@@ -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;
......