Merge "Guard against an NPE if a view is removed just after a path animation started." into rvc-dev am: 0b90ea2837

Original change: undetermined

Change-Id: I4dddcf2dfcae01258319b28432c22a9e3e72d51a
This commit is contained in:
TreeHugger Robot
2020-06-01 22:27:04 +00:00
committed by Automerger Merge Worker

View File

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