Guard against an NPE if a view is removed just after a path animation started.

Fixes: 157071931
Test: atest SystemUITests
Change-Id: I8daa96267db4c40734f6b8212b9b79e48120f9e6
This commit is contained in:
Joshua Tsuji
2020-06-01 16:38:02 -04:00
parent af9a747e33
commit 78d87b0047

View File

@@ -1037,6 +1037,11 @@ public class PhysicsAnimationLayout extends FrameLayout {
if (view != null) {
final SpringAnimation animation =
(SpringAnimation) view.getTag(getTagIdForProperty(property));
if (animation == null) {
return;
}
final SpringForce animationSpring = animation.getSpring();
if (animationSpring == null) {