Skip to content

Commit e278eb6

Browse files
Murali reddyMurali reddy
authored andcommitted
bug 13872: Implementation of Guest Network by JuniperSRX failed: NPE during the execution of IPAssoc
Reviewed-by: Jana status 13872: resolved fixed
1 parent 5af6fbe commit e278eb6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core/src/com/cloud/network/resource/JuniperSrxResource.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ private Answer execute(IpAssocCommand cmd, int numRetries) {
622622
String guestVlanSubnet = NetUtils.getCidrSubNet(guestVlanGateway, cidrSize);
623623

624624
Long publicVlanTag = null;
625-
if (!ip.getVlanId().equals("untagged")) {
625+
if (ip.getVlanId() != null && !ip.getVlanId().equals("untagged")) {
626626
try {
627627
publicVlanTag = Long.parseLong(ip.getVlanId());
628628
} catch (Exception e) {

0 commit comments

Comments
 (0)