summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
Diffstat (limited to 'main/src')
-rw-r--r--main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java b/main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java
index 050555c6..b1b38189 100644
--- a/main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java
+++ b/main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java
@@ -106,7 +106,7 @@ public class ConfigConverter extends BaseActivity implements FileSelectCallback,
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
// Permission declined, do nothing
- if (grantResults[0] == PackageManager.PERMISSION_DENIED)
+ if (grantResults.length == 0 || grantResults[0] == PackageManager.PERMISSION_DENIED)
return;
// Reset file select dialogs