diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/src/ui/java/de/blinkt/openvpn/activities/MainActivity.java | 3 |
1 files changed, 2 insertions, 1 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 fe98cf77..e486afad 100644 --- a/main/src/ui/java/de/blinkt/openvpn/activities/MainActivity.java +++ b/main/src/ui/java/de/blinkt/openvpn/activities/MainActivity.java @@ -79,7 +79,8 @@ public class MainActivity extends BaseActivity { super.onResume(); Intent intent = getIntent(); if (intent != null) { - if (intent.getAction().equals(Intent.ACTION_VIEW)) + String action = intent.getAction(); + if (action != null && Intent.ACTION_VIEW.equals(action)) { Uri uri = intent.getData(); checkUriForProfileImport(uri); |