summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-11-30 17:49:39 -0800
committerJeff Sharkey <jsharkey@android.com>2012-11-30 17:49:39 -0800
commit6a328afbab37981f34d8578972dbb2bf1abb7c41 (patch)
treee52a0c2f0f6265cbf4643dfa08eae7f6a27d9045 /services
parent5915f61e8b10e2a89d302f3c9bf2104c4abe1c07 (diff)
downloadframeworks_base-6a328afbab37981f34d8578972dbb2bf1abb7c41.zip
frameworks_base-6a328afbab37981f34d8578972dbb2bf1abb7c41.tar.gz
frameworks_base-6a328afbab37981f34d8578972dbb2bf1abb7c41.tar.bz2
Avoid null mobile interfaces.
Bug: 7634215 Change-Id: I6745f6a78c07ba11d98b4562a6b53386112ef652
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/net/NetworkStatsService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/java/com/android/server/net/NetworkStatsService.java b/services/java/com/android/server/net/NetworkStatsService.java
index 7101520..546f2be 100644
--- a/services/java/com/android/server/net/NetworkStatsService.java
+++ b/services/java/com/android/server/net/NetworkStatsService.java
@@ -903,7 +903,7 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
ident.add(NetworkIdentity.buildNetworkIdentity(mContext, state));
// remember any ifaces associated with mobile networks
- if (isNetworkTypeMobile(state.networkInfo.getType())) {
+ if (isNetworkTypeMobile(state.networkInfo.getType()) && iface != null) {
if (!contains(mMobileIfaces, iface)) {
mMobileIfaces = appendElement(String.class, mMobileIfaces, iface);
}