From c6c06255511802ef07e3b88b4089017a4ba1fbdb Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 13 Aug 2012 16:14:49 +0200 Subject: FIX NPE from market console --- src/de/blinkt/openvpn/OpenVpnManagementThread.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/de') 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; -- cgit v1.2.3