summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/statusbar
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2015-03-24 19:57:48 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-03-24 19:57:49 +0000
commit4b7b21ec834cd307e3d122f2d517778b13242dfb (patch)
treebf6f9d8e03b9550588ddad293e9669c842c943a6 /packages/SystemUI/src/com/android/systemui/statusbar
parentf5f70b66a3f22ca5e23a4d1e6061f2a36dfb4c92 (diff)
parentaedae722fd148724d470124aff2f65215baa1a38 (diff)
downloadframeworks_base-4b7b21ec834cd307e3d122f2d517778b13242dfb.zip
frameworks_base-4b7b21ec834cd307e3d122f2d517778b13242dfb.tar.gz
frameworks_base-4b7b21ec834cd307e3d122f2d517778b13242dfb.tar.bz2
Merge "systemui: Handle case when network has been lost"
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/policy/SecurityControllerImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/SecurityControllerImpl.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/SecurityControllerImpl.java
index 2fbb812..f0dd943 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/SecurityControllerImpl.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/SecurityControllerImpl.java
@@ -190,7 +190,8 @@ public class SecurityControllerImpl implements SecurityController {
NetworkCapabilities networkCapabilities =
mConnectivityManager.getNetworkCapabilities(network);
if (DEBUG) Log.d(TAG, "onAvailable " + network.netId + " : " + networkCapabilities);
- if (networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_VPN)) {
+ if (networkCapabilities != null &&
+ networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_VPN)) {
setCurrentNetid(network.netId);
}
};