summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2021-05-31 12:40:07 +0800
committerRiddle Hsu <riddlehsu@google.com>2021-05-31 12:40:07 +0800
commit7fe18ea17d1e0759424dd7eaa2586b4219504aea (patch)
treeb779f84cb83008f12b904e01478ae5e8ac677c0c /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent0a40c03eb1a0583c7cac687d679d281683fae293 (diff)
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
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions