diff options
author | Charles Chen <charlesccchen@google.com> | 2020-05-15 17:32:03 +0800 |
---|---|---|
committer | Charles Chen <charlesccchen@google.com> | 2020-05-19 08:15:58 +0000 |
commit | 7d550c4fc4322c34517cfcdca6fdbb2042f418fd (patch) | |
tree | daa8580b51b1bf61ea02266306210e3b7ed9ba8a /rs/java/android/renderscript/Program.java | |
parent | 54dd86ac12b6d812c792da14160eb2ab7327aa45 (diff) |
Fix NPE in isTrimmable
Previous CL[1] makes the root home task nullable, which causes NPE
in RecentTask#isTrimmable. This CL adds null checks on the method and
other callers which don't have checks, and also marks
TaskDisplayArea#getRootHomeTask as @Nullable.
[1]: 3388bd2a0b0cdcb79c36d939f5913669de1b7b90
Test: atest RecentTasks RecentsAnimationControllerTest
Test: atest TaskDisplayAreaTests WindowStateTests
fixes: 155100679
Change-Id: I8a59fbcb99810172a3b3192917d24e5122a02476
Diffstat (limited to 'rs/java/android/renderscript/Program.java')
0 files changed, 0 insertions, 0 deletions