summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2019-03-31 18:45:42 +0200
committercyBerta <cyberta@riseup.net>2019-03-31 18:45:42 +0200
commit673621f070d91e14f3daa35e751f14df1e3bfacd (patch)
tree6976a654b83bf17b702eb407299d6ae1f2b579ad /app/src/main
parent122406d6dcd3588173ac312cdd5ef926a7bd8b58 (diff)
fix NPE in NetworkUtils
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/de/blinkt/openvpn/core/NetworkUtils.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/de/blinkt/openvpn/core/NetworkUtils.java b/app/src/main/java/de/blinkt/openvpn/core/NetworkUtils.java
index 40449118..78799a3a 100644
--- a/app/src/main/java/de/blinkt/openvpn/core/NetworkUtils.java
+++ b/app/src/main/java/de/blinkt/openvpn/core/NetworkUtils.java
@@ -27,6 +27,10 @@ public class NetworkUtils {
NetworkCapabilities nc = conn.getNetworkCapabilities(network);
+ if (nc == null) {
+ continue;
+ }
+
// Skip VPN networks like ourselves
if (nc.hasTransport(NetworkCapabilities.TRANSPORT_VPN))
continue;