bug 13872: Implementation of Guest Network by JuniperSRX failed: NPE during the execution of IPAssoc

Reviewed-by: Jana
status 13872: resolved fixed
This commit is contained in:
Murali reddy 2012-02-20 18:08:28 +05:30
parent 5af6fbef83
commit e278eb674e

View File

@ -622,7 +622,7 @@ public class JuniperSrxResource implements ServerResource {
String guestVlanSubnet = NetUtils.getCidrSubNet(guestVlanGateway, cidrSize);
Long publicVlanTag = null;
if (!ip.getVlanId().equals("untagged")) {
if (ip.getVlanId() != null && !ip.getVlanId().equals("untagged")) {
try {
publicVlanTag = Long.parseLong(ip.getVlanId());
} catch (Exception e) {