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

Commit 0ba9578d authored by Chris Li's avatar Chris Li Committed by Android (Google) Code Review
Browse files

Merge "Check NPE earlier for AnimationAdapter" into main

parents 8a4c6566 a16eac81
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ import com.android.wm.shell.common.ShellExecutor;
import com.android.wm.shell.shared.TransactionPool;

import java.util.ArrayList;
import java.util.Objects;
import java.util.function.Consumer;

public class DefaultSurfaceAnimator {
@@ -77,7 +78,7 @@ public class DefaultSurfaceAnimator {
        private Choreographer mChoreographer;

        AnimationAdapter(@NonNull SurfaceControl leash) {
            mLeash = leash;
            mLeash = Objects.requireNonNull(leash, "leash is null in AnimationAdapter constructor");
        }

        void setTransaction(@NonNull SurfaceControl.Transaction transaction) {