cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From likit...@apache.org
Subject git commit: updated refs/heads/master to 55f0e16
Date Wed, 26 Jun 2013 09:33:26 GMT
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 <likitha.shetty@citrix.com>
Authored: Wed Jun 26 14:58:45 2013 +0530
Committer: Likitha Shetty <likitha.shetty@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)) {


Mime
View raw message