You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by li...@apache.org on 2013/06/26 11:33:26 UTC
git commit: updated refs/heads/master to 55f0e16
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 <li...@citrix.com>
Authored: Wed Jun 26 14:58:45 2013 +0530
Committer: Likitha Shetty <li...@citrix.com>
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)) {