commit | f36a83661a5531c7c3efaaff7d1575d68420e117 | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Wed Mar 30 11:09:57 2016 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Thu Mar 31 14:33:40 2016 +0000 |
tree | 06adfc3e4cabf7a4a7e64e99aa9864bf98db6750 | |
parent | ed804d51445888ea3b7fce38b80c24496b670471 [diff] |
Fix one of the causes of ONOS-3954 Return statement was missing on an allocation failure Change-Id: If6107462061ef56cd45ccb9e6d67d47f6aae9f43
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/PathCompiler.java b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/PathCompiler.java index b954305..50114ec 100644 --- a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/PathCompiler.java +++ b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/PathCompiler.java
@@ -115,7 +115,7 @@ List<ResourceAllocation> allocations = creator.resourceService().allocate(intent.id(), ImmutableList.copyOf(resources)); if (allocations.isEmpty()) { - Collections.emptyMap(); + return Collections.emptyMap(); } return vlanIds;