Updated Branches: refs/heads/master 3bb4ec9f6 -> 55f0e167e
CLOUDSTACK-3206. CreateVlanIpRange fails with IndexOutOfBoundsException. Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/55f0e167 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/55f0e167 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/55f0e167 Branch: refs/heads/master Commit: 55f0e167ecda92bf4731eeff2a56b2ad22a3be21 Parents: 3bb4ec9 Author: Likitha Shetty <[email protected]> Authored: Wed Jun 26 14:58:45 2013 +0530 Committer: Likitha Shetty <[email protected]> Committed: Wed Jun 26 14:59:36 2013 +0530 ---------------------------------------------------------------------- server/src/com/cloud/configuration/ConfigurationManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/55f0e167/server/src/com/cloud/configuration/ConfigurationManagerImpl.java ---------------------------------------------------------------------- diff --git a/server/src/com/cloud/configuration/ConfigurationManagerImpl.java b/server/src/com/cloud/configuration/ConfigurationManagerImpl.java index 26dc088..041f29a 100755 --- a/server/src/com/cloud/configuration/ConfigurationManagerImpl.java +++ b/server/src/com/cloud/configuration/ConfigurationManagerImpl.java @@ -2685,8 +2685,8 @@ public class ConfigurationManagerImpl extends ManagerBase implements Configurati } List<VlanVO> vlans = _vlanDao.listVlansByNetworkId(network.getId()); - VlanVO vlan = vlans.get(0); if (vlans != null && vlans.size() > 0) { + VlanVO vlan = vlans.get(0); if (vlanId == null) { vlanId = vlan.getVlanTag(); } else if (!vlan.getVlanTag().equals(vlanId)) {
