summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2021-10-06 17:38:33 +0200
committerArne Schwabe <arne@rfc2549.org>2021-10-06 17:38:33 +0200
commit38175d6d0e8c6e68f4dca57ef78d560a190b29e4 (patch)
tree1cf6c63368e9af2c114054b8746e1036e75399f5 /main
parenteecf3dbf9b51b23d12b99e6f008ea37f06e9b71f (diff)
Fix crash when no connections are defined
Diffstat (limited to 'main')
-rw-r--r--main/src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java b/main/src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java
index 14f25aa0..bcf0e898 100644
--- a/main/src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java
+++ b/main/src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java
@@ -453,7 +453,7 @@ public class OpenVpnManagementThread implements Runnable, OpenVPNManagement {
String proxyname = null;
boolean proxyUseAuth = false;
- if (mProfile.mConnections.length > connectionEntryNumber) {
+ if (mProfile.mConnections != null && mProfile.mConnections.length > connectionEntryNumber) {
Connection connection = mProfile.mConnections[connectionEntryNumber];
proxyType = connection.mProxyType;
proxyname = connection.mProxyName;