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

Commit d6cc8857 authored by Stanislav Zholnin's avatar Stanislav Zholnin
Browse files

Avoid division by zero error when AppOps history is empty.

Test: manual verification
Bug: 143519689
Change-Id: Idbabfcede887382a29e39702d38959639f34b7c7
parent 634642bc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2947,7 +2947,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();