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

Commit ad1cfd0d authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Prevent potential NPE of checking task drawn for logger" into sc-dev

parents 87a5a818 7fe18ea1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -780,7 +780,7 @@ class ActivityMetricsLogger {
            // window drawn event should report later to complete the transition. Otherwise all
            // activities in this task may be finished, invisible or drawn, so the transition event
            // should be cancelled.
            if (t.forAllActivities(
            if (t != null && t.forAllActivities(
                    a -> a.mVisibleRequested && !a.isReportedDrawn() && !a.finishing)) {
                return;
            }