diff options
author | cyBerta <cyberta@riseup.net> | 2019-03-31 18:45:42 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2019-03-31 18:45:42 +0200 |
commit | 673621f070d91e14f3daa35e751f14df1e3bfacd (patch) | |
tree | 6976a654b83bf17b702eb407299d6ae1f2b579ad /app/src/main | |
parent | 122406d6dcd3588173ac312cdd5ef926a7bd8b58 (diff) |
fix NPE in NetworkUtils
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/de/blinkt/openvpn/core/NetworkUtils.java | 4 |
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; |