Skip to content

Commit 8bd33d3

Browse files
committed
Merge pull request #1952 from sgoeminn/CLOUDSTACK-9790
CLOUDSTACK-9790: fix NPE in case of Basic zone.This PR fixes the creation of a basic zone. https://issues.apache.org/jira/browse/CLOUDSTACK-9790 * pr/1952: CLOUDSTACK-9790: fix NPE in case of Basic zone. Signed-off-by: Rajani Karuturi <rajani.karuturi@accelerite.com>
2 parents d84347b + a01f7e7 commit 8bd33d3

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
@@ -2919,7 +2919,7 @@ public Pair<Boolean, Pair<String, String>> validateIpRange(final String startIP,
29192919
ipv6, ip6Gateway, ip6Cidr, startIPv6, endIPv6, network);
29202920
if (sameSubnet) break;
29212921
}
2922-
} else {
2922+
} else if(network.getGateway() != null && network.getCidr() != null) {
29232923
vlanGateway = network.getGateway();
29242924
vlanNetmask = NetUtils.getCidrNetmask(network.getCidr());
29252925
sameSubnet = hasSameSubnet(ipv4, vlanGateway, vlanNetmask, newVlanGateway, newVlanNetmask, startIP, endIP,

0 commit comments

Comments
 (0)