Merge "Prevent potential NPE of checking task drawn for logger" into sc-dev am: ad1cfd0db8 am: 0b6fff5266 am: d130430288
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14772867 Change-Id: I0fe87ac07d9ce28b1c0f00a40e8abbe14ae070f2
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user