CLOUDSTACK-7540: Fixed NPE in check s2svpn connection status

This commit is contained in:
Jayapal 2014-09-12 17:10:48 +05:30
parent 3cb6d4a4df
commit 86bf33bfab

View File

@ -60,7 +60,12 @@ public class CheckS2SVpnConnectionsAnswer extends Answer {
public boolean isConnected(String ip) { public boolean isConnected(String ip) {
if (this.getResult()) { if (this.getResult()) {
return ipToConnected.get(ip); Boolean status = ipToConnected.get(ip);
if (status != null) {
return status;
}
} }
return false; return false;
} }