Skip to content

Commit 86bf33b

Browse files
author
Jayapal
committed
CLOUDSTACK-7540: Fixed NPE in check s2svpn connection status
1 parent 3cb6d4a commit 86bf33b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎core/src/com/cloud/agent/api/CheckS2SVpnConnectionsAnswer.java‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,12 @@ protected void parseDetails(String details) {
6060

6161
public boolean isConnected(String ip) {
6262
if (this.getResult()) {
63-
return ipToConnected.get(ip);
63+
Boolean status = ipToConnected.get(ip);
64+
65+
if (status != null) {
66+
return status;
67+
}
68+
6469
}
6570
return false;
6671
}

0 commit comments

Comments
 (0)