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

Commit 303e4157 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Fix NPE in usage stats manager (recent regression)

Change-Id: I305bb64b11c9240dc0df5d7b08a9a970660157c8
Fix: 38430177
Test: build and boot
parent a239ed1c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -831,6 +831,9 @@ public class UsageStatsService extends SystemService implements
            final UserUsageStatsService service =
                    getUserDataAndInitializeIfNeededLocked(userId, timeNow);
            List<UsageStats> list = service.queryUsageStats(bucketType, beginTime, endTime);
            if (list == null) {
                return null;
            }

            // Mangle instant app names *using their current state (not whether they were ephemeral
            // when the data was recorded)*.