am d808bd6e: am f0bbc494: Merge "Avoid NPE when missing network stats." into ics-mr1
* commit 'd808bd6e22547c144c6384c2bc6490853108ded6': Avoid NPE when missing network stats.
This commit is contained in:
@@ -1060,8 +1060,10 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// clear UID from current stats snapshot
|
// clear UID from current stats snapshot
|
||||||
mLastPollUidSnapshot = mLastPollUidSnapshot.withoutUid(uid);
|
if (mLastPollUidSnapshot != null) {
|
||||||
mLastPollNetworkXtSnapshot = computeNetworkXtSnapshotFromUid(mLastPollUidSnapshot);
|
mLastPollUidSnapshot = mLastPollUidSnapshot.withoutUid(uid);
|
||||||
|
mLastPollNetworkXtSnapshot = computeNetworkXtSnapshotFromUid(mLastPollUidSnapshot);
|
||||||
|
}
|
||||||
|
|
||||||
// clear kernel stats associated with UID
|
// clear kernel stats associated with UID
|
||||||
resetKernelUidStats(uid);
|
resetKernelUidStats(uid);
|
||||||
|
|||||||
Reference in New Issue
Block a user