From cf939cc50cebddc19a17641d821b2b0a9259efc2 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Fri, 17 Aug 2012 20:18:19 +0200 Subject: really fix NPE from market --- src/de/blinkt/openvpn/OpenVpnManagementThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/de/blinkt') diff --git a/src/de/blinkt/openvpn/OpenVpnManagementThread.java b/src/de/blinkt/openvpn/OpenVpnManagementThread.java index dcadfdbd..d593832a 100644 --- a/src/de/blinkt/openvpn/OpenVpnManagementThread.java +++ b/src/de/blinkt/openvpn/OpenVpnManagementThread.java @@ -439,7 +439,7 @@ public class OpenVpnManagementThread implements Runnable { mt.managmentCommand("signal SIGINT\n"); sendCMD=true; try { - if(mt !=null) + if(mt.mSocket !=null) mt.mSocket.close(); } catch (IOException e) { // Ignore close error on already closed socket -- cgit v1.2.3