Skip to content

Commit 55f0e16

Browse files
author
Likitha Shetty
committed
CLOUDSTACK-3206. CreateVlanIpRange fails with IndexOutOfBoundsException.
1 parent 3bb4ec9 commit 55f0e16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/com/cloud/configuration/ConfigurationManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2685,8 +2685,8 @@ public Vlan createVlanAndPublicIpRange(CreateVlanIpRangeCmd cmd) throws Insuffic
26852685
}
26862686

26872687
List<VlanVO> vlans = _vlanDao.listVlansByNetworkId(network.getId());
2688-
VlanVO vlan = vlans.get(0);
26892688
if (vlans != null && vlans.size() > 0) {
2689+
VlanVO vlan = vlans.get(0);
26902690
if (vlanId == null) {
26912691
vlanId = vlan.getVlanTag();
26922692
} else if (!vlan.getVlanTag().equals(vlanId)) {

0 commit comments

Comments
 (0)