Merge "Avoid division by zero error when AppOps history is empty." into rvc-dev am: 18f643d4f2 am: 8679438c0b am: 23cd45cd60 am: 755a8603cd

Change-Id: I28b10e56d1e3f3be91034246a67d215e00bffadf
This commit is contained in:
TreeHugger Robot
2020-04-28 06:37:53 +00:00
committed by Automerger Merge Worker

View File

@@ -2951,7 +2951,7 @@ public class StatsPullAtomService extends SystemService {
}
int processHistoricalOps(HistoricalOps histOps, int atomTag, List<StatsEvent> pulledData) {
int counter = 0;
int counter = 1;
for (int uidIdx = 0; uidIdx < histOps.getUidCount(); uidIdx++) {
final HistoricalUidOps uidOps = histOps.getUidOpsAt(uidIdx);
final int uid = uidOps.getUid();