Skip to content

Commit ff0a524

Browse files
Vijayendra BhamidipatiSateesh Chodapuneedi
authored andcommitted
CLOUDSTACK-2969: Exception when creating vlan ip range
Description: Putting in null pointer check when creating ip range. Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
1 parent c2b5c98 commit ff0a524

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
@@ -2528,7 +2528,7 @@ else if (zone.getNetworkType() == NetworkType.Basic){
25282528
}
25292529
Transaction txn = Transaction.currentTxn();
25302530
txn.start();
2531-
if (sameSubnet.first() == false) {
2531+
if (sameSubnet == null || sameSubnet.first() == false) {
25322532
s_logger.info("adding a new subnet to the network "+network.getId());
25332533
}
25342534
else {

0 commit comments

Comments
 (0)