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

Commit a06d1f8f authored by Justin Klaassen's avatar Justin Klaassen Committed by android-build-merger
Browse files

Fix NPE in ValueAnimator am: 543a7ed7

am: 705e2fb4

Change-Id: I5beab0d64c1544344f1153f183c513839f673a1f
parents c9940692 705e2fb4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -977,7 +977,7 @@ public final class ObjectAnimator extends ValueAnimator {
    @Override
    void animateValue(float fraction) {
        final Object target = getTarget();
        if (mTarget != null && target == null) {
        if (target == null) {
            // We lost the target reference, cancel and clean up.
            cancel();
            return;
+1 −0
Original line number Diff line number Diff line
@@ -982,6 +982,7 @@ public class ValueAnimator extends Animator implements AnimationHandler.Animatio
        mStarted = true;
        mPaused = false;
        mRunning = false;
        mAnimationEndRequested = false;
        // Resets mLastFrameTime when start() is called, so that if the animation was running,
        // calling start() would put the animation in the
        // started-but-not-yet-reached-the-first-frame phase.