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

Commit bc9abc65 authored by Michael Wachenschwanz's avatar Michael Wachenschwanz
Browse files

Add null check for LastEvent in UserUsageStatsService

Change-Id: Ie57233ccb23f1399234b1dbb6ae490de9595e71f
Fixes: 111630625
Test: manual
parent e4c818f4
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);