diff options
author | Parménides GV <parmegv@sdf.org> | 2014-06-16 22:37:25 +0200 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2014-06-16 22:37:25 +0200 |
commit | ecb4616331b3a9df83872604d578cb7f35a2d075 (patch) | |
tree | 7f0f246ce67215b475ac2d8d1f5ee20310a7170f /app/src | |
parent | e2793ff1ad97a373993fd8628a514c772d6d5434 (diff) | |
parent | ee49de021bab8838ed44897f1046cb7d0f8f5921 (diff) |
Merge branch 'hotfix/start-eip-null-pointer' into develop
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/EIP.java | 4 | ||||
-rw-r--r-- | app/src/main/res/values/untranslatable.xml | 78 |
2 files changed, 80 insertions, 2 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/EIP.java b/app/src/main/java/se/leap/bitmaskclient/EIP.java index 59faf93f..a7a17e5f 100644 --- a/app/src/main/java/se/leap/bitmaskclient/EIP.java +++ b/app/src/main/java/se/leap/bitmaskclient/EIP.java @@ -234,8 +234,9 @@ public final class EIP extends IntentService { * Intent to {@link se.leap.openvpn.LaunchVPN} */ private void startEIP() { - activeGateway = selectGateway(); + activeGateway = selectGateway(); + if(activeGateway != null && activeGateway.mVpnProfile != null) { Intent intent = new Intent(this,LaunchVPN.class); intent.setAction(Intent.ACTION_MAIN); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); @@ -245,6 +246,7 @@ public final class EIP extends IntentService { intent.putExtra(RECEIVER_TAG, mReceiver); startActivity(intent); mPending = ACTION_START_EIP; + } } /** diff --git a/app/src/main/res/values/untranslatable.xml b/app/src/main/res/values/untranslatable.xml index 50e598ac..4212cec2 100644 --- a/app/src/main/res/values/untranslatable.xml +++ b/app/src/main/res/values/untranslatable.xml @@ -777,4 +777,80 @@ -</resources>
\ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +</resources> |