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>
This commit is contained in:
Vijayendra Bhamidipati 2013-06-12 06:34:02 -07:00 committed by Sateesh Chodapuneedi
parent c2b5c98de0
commit ff0a524bd6

View File

@ -2528,7 +2528,7 @@ public class ConfigurationManagerImpl extends ManagerBase implements Configurati
}
Transaction txn = Transaction.currentTxn();
txn.start();
if (sameSubnet.first() == false) {
if (sameSubnet == null || sameSubnet.first() == false) {
s_logger.info("adding a new subnet to the network "+network.getId());
}
else {