CLOUDSTACK-3206. CreateVlanIpRange fails with IndexOutOfBoundsException.

This commit is contained in:
Likitha Shetty 2013-06-26 14:58:45 +05:30
parent 3bb4ec9f65
commit 55f0e167ec
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {