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

Skip to content
Commit 7fe18ea1 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Prevent potential NPE of checking task drawn for logger

The place is only called from:
1. notifyActivityLaunched (more likely)
   The activity must be launched successfully so ideally its
   task shouldn't be null.
2. notifyVisibilityChanged
   The only caller (setVisibility) has checked non-null
   parent (task).

Still add a simple check for the unknown case.

Bug: 189540136
Test: ActivityMetricsLaunchObserverTests
Change-Id: Iae4a3ad1ae35f1a206d5cf47c7e41e0013aa5077
parent 0a40c03e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment