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

Original change: undetermined

Change-Id: Ic8b8c9a7c8ca1d52c0416183c36def69be6264f6
This commit is contained in:
TreeHugger Robot
2020-06-01 23:05:09 +00:00
committed by Automerger Merge Worker

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) {