Merge "Avoid null mobile interfaces." into jb-mr1.1-dev

This commit is contained in:
Jeff Sharkey
2012-12-03 11:32:51 -08:00
committed by Android (Google) Code Review

View File

@@ -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);
}