From 674762a1d443e89ca6c13aa72051ac429a135d27 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 4 Oct 2021 04:51:46 +0200 Subject: Minor code cleanup --- main/src/ui/java/de/blinkt/openvpn/activities/MainActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main/src/ui/java/de') 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)) { -- cgit v1.2.3