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

Commit 8c8a9a1e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add null check for LastEvent in UserUsageStatsService"

parents d447b5cf bc9abc65
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -314,7 +314,7 @@ class UserUsageStatsService {

            // STOPSHIP: Temporary logging for b/110930764.
            if (intervalType == UsageStatsManager.INTERVAL_DAILY
                    && mLastEvent.mTimeStamp >= beginTime) {
                    && mLastEvent != null && mLastEvent.mTimeStamp >= beginTime) {
                final IntervalStats diskStats = mDatabase.getLatestUsageStats(
                        UsageStatsManager.INTERVAL_DAILY);
                StringBuilder sb = new StringBuilder(256);