summaryrefslogtreecommitdiff
path: root/app/src/main/java/de
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/de')
-rw-r--r--app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java b/app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java
index 55e9cfe9..e42e36bb 100644
--- a/app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java
+++ b/app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java
@@ -534,6 +534,11 @@ public class OpenVPNService extends VpnService implements StateListener, Callbac
//Debug.startMethodTracing(getExternalFilesDir(null).toString() + "/opentun.trace", 40* 1024 * 1024);
+ if (mProfile == null) {
+ VpnStatus.logError("Refusing to open tun device without profile.");
+ return null;
+ }
+
Builder builder = new Builder();
VpnStatus.logInfo(R.string.last_openvpn_tun_config);