summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-08-13 16:14:49 +0200
committerArne Schwabe <arne@rfc2549.org>2012-08-13 16:14:49 +0200
commit5fb75ccb2467f8b92c0aa86bddc0c41005332f08 (patch)
treedaa327e539723445448d9331909d7aaf9d13a0a2
parentde6c60c90faae210645156adc5c9121257567595 (diff)
FIX NPE from market console
-rw-r--r--src/de/blinkt/openvpn/OpenVpnManagementThread.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/de/blinkt/openvpn/OpenVpnManagementThread.java b/src/de/blinkt/openvpn/OpenVpnManagementThread.java
index 4e7729ec..45aaeadf 100644
--- a/src/de/blinkt/openvpn/OpenVpnManagementThread.java
+++ b/src/de/blinkt/openvpn/OpenVpnManagementThread.java
@@ -431,9 +431,10 @@ public class OpenVpnManagementThread implements Runnable {
mt.managmentCommand("signal SIGINT\n");
sendCMD=true;
try {
- mt.mSocket.close();
+ if(mt !=null)
+ mt.mSocket.close();
} catch (IOException e) {
- // Ignore close error on maybe already closed socket
+ // Ignore close error on already closed socket
}
}
return sendCMD;