CS-15274: Fix NPE on CreateVlanIpRangeCmd()

Signed-off-by: Sheng Yang <sheng.yang@citrix.com>
This commit is contained in:
Jason Bausewein 2012-07-02 15:05:23 -07:00 committed by Sheng Yang
parent 9876d34ea4
commit 0449ae37f1
1 changed files with 1 additions and 0 deletions

View File

@ -2132,6 +2132,7 @@ public class ConfigurationManagerImpl implements ConfigurationManager, Configura
if (network == null) {
if (zone.getNetworkType() == DataCenter.NetworkType.Basic) {
networkId = _networkMgr.getExclusiveGuestNetwork(zoneId).getId();
network = _networkMgr.getNetwork(networkId);
} else {
network = _networkMgr.getNetworkWithSecurityGroupEnabled(zoneId);
if (network == null) {