summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/src/ui/java/de/blinkt/openvpn/activities/MainActivity.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/ui/java/de/blinkt/openvpn/activities/MainActivity.java b/main/src/ui/java/de/blinkt/openvpn/activities/MainActivity.java
index e486afad..a6d5ecc4 100644
--- a/main/src/ui/java/de/blinkt/openvpn/activities/MainActivity.java
+++ b/main/src/ui/java/de/blinkt/openvpn/activities/MainActivity.java
@@ -80,10 +80,11 @@ public class MainActivity extends BaseActivity {
Intent intent = getIntent();
if (intent != null) {
String action = intent.getAction();
- if (action != null && Intent.ACTION_VIEW.equals(action))
+ if (Intent.ACTION_VIEW.equals(action))
{
Uri uri = intent.getData();
- checkUriForProfileImport(uri);
+ if (uri != null)
+ checkUriForProfileImport(uri);
}
String page = intent.getStringExtra("PAGE");
if ("graph".equals(page)) {