Skip to content

Commit 78d87b0

Browse files
author
Joshua Tsuji
committed
Guard against an NPE if a view is removed just after a path animation started.
Fixes: 157071931 Test: atest SystemUITests Change-Id: I8daa96267db4c40734f6b8212b9b79e48120f9e6
1 parent af9a747 commit 78d87b0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/SystemUI/src/com/android/systemui/bubbles/animation/PhysicsAnimationLayout.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,11 @@ private void updateValueForChild(
10371037
if (view != null) {
10381038
final SpringAnimation animation =
10391039
(SpringAnimation) view.getTag(getTagIdForProperty(property));
1040+
1041+
if (animation == null) {
1042+
return;
1043+
}
1044+
10401045
final SpringForce animationSpring = animation.getSpring();
10411046

10421047
if (animationSpring == null) {

0 commit comments

Comments
 (0)