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

Commit 78d87b00 authored by Joshua Tsuji's avatar Joshua Tsuji
Browse files

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

Fixes: 157071931
Test: atest SystemUITests
Change-Id: I8daa96267db4c40734f6b8212b9b79e48120f9e6
parent af9a747e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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) {