summaryrefslogtreecommitdiff
path: root/main/src/ui/java/de
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2021-10-04 04:51:46 +0200
committerArne Schwabe <arne@rfc2549.org>2021-10-04 04:51:46 +0200
commit674762a1d443e89ca6c13aa72051ac429a135d27 (patch)
treec81183d1526d9d3912bfbb2dbac878ec54df7f60 /main/src/ui/java/de
parent04054693df7778141dc6411f05fd2075d1778ff9 (diff)
Minor code cleanup
Diffstat (limited to 'main/src/ui/java/de')
-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)) {