diff options
author | Ming-Shin Lu <lumark@google.com> | 2020-06-17 16:02:25 +0800 |
---|---|---|
committer | Ming-Shin Lu <lumark@google.com> | 2020-06-17 16:02:25 +0800 |
commit | 1a9f73878fc4e84aaaddc87e1eda389a91693d63 (patch) | |
tree | a9471e54c1e2be11bc257e7da4b2169a9488f5e3 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 06b2e1cb175121d28c52d8b5d6f682c3234b669c (diff) |
Fix NPE on WindowContainer#isOnTop
RecentsAnimationController#removeTask will use WC#isOnTop
to check if can accept the remote animation task target removal.
However, it may hit the timing that the parent of the task might be
removed prior than removeTask called, so caued exception during
WC#getParent().
Add null check in WC#inOnTop to return false when WC#getParent is null.
Bug: 158937083
Test: atest WindowContainerTests
Change-Id: I17b1f709722f573af6efcd00523d434766bca800
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions