From eed0b325a50fea16c71919c9893445b33929ab75 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/openvpn') 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