Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0bbc494 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Avoid NPE when missing network stats." into ics-mr1

parents 840201d6 d04ff11d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1060,8 +1060,10 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
        }

        // clear UID from current stats snapshot
        if (mLastPollUidSnapshot != null) {
            mLastPollUidSnapshot = mLastPollUidSnapshot.withoutUid(uid);
            mLastPollNetworkXtSnapshot = computeNetworkXtSnapshotFromUid(mLastPollUidSnapshot);
        }

        // clear kernel stats associated with UID
        resetKernelUidStats(uid);