summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/de/blinkt/openvpn/api/APIVpnProfile.java2
-rw-r--r--src/de/blinkt/openvpn/core/OpenVPNThread.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/de/blinkt/openvpn/api/APIVpnProfile.java b/src/de/blinkt/openvpn/api/APIVpnProfile.java
index 5445913a..dfcccf36 100644
--- a/src/de/blinkt/openvpn/api/APIVpnProfile.java
+++ b/src/de/blinkt/openvpn/api/APIVpnProfile.java
@@ -9,8 +9,6 @@ public class APIVpnProfile implements Parcelable {
public final String mName;
public final boolean mUserEditable;
-
-
public APIVpnProfile(Parcel in) {
mUUID = in.readString();
mName = in.readString();
diff --git a/src/de/blinkt/openvpn/core/OpenVPNThread.java b/src/de/blinkt/openvpn/core/OpenVPNThread.java
index d8fff1dd..24d65b55 100644
--- a/src/de/blinkt/openvpn/core/OpenVPNThread.java
+++ b/src/de/blinkt/openvpn/core/OpenVPNThread.java
@@ -34,6 +34,7 @@ public class OpenVPNThread implements Runnable {
mArgv = argv;
mNativeDir = nativelibdir;
mService = service;
+ mProcessEnv = processEnv;
}
public void stopProcess() {
@@ -54,7 +55,8 @@ public class OpenVPNThread implements Runnable {
} finally {
int exitvalue = 0;
try {
- exitvalue = mProcess.waitFor();
+ if (mProcess!=null)
+ exitvalue = mProcess.waitFor();
} catch ( IllegalThreadStateException ite) {
OpenVPN.logError("Illegal Thread state: " + ite.getLocalizedMessage());
} catch (InterruptedException ie) {