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

Commit 105a7f93 authored by Annie Lin's avatar Annie Lin
Browse files

Add layout null check in prepareForBubbleDrag.

Occasionally seeing:
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.wm.shell.bubbles.animation.PhysicsAnimationLayout.cancelAnimationsOnView(android.view.View)' on a null object reference at com.android.wm.shell.bubbles.animation.ExpandedAnimationController.prepareForBubbleDrag(ExpandedAnimationController.java:357)

Bug: 419342398
Test: wm presubmit
Flag: com.android.wm.shell.enable_create_any_bubble
Change-Id: Ia69cbe8836b158b6639ded9aac996a369218aa5a
parent 73c38eef
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -354,6 +354,7 @@ public class ExpandedAnimationController
            View bubble,
            MagnetizedObject.MagneticTarget target,
            MagnetizedObject.MagnetListener listener) {
        if (mLayout == null) return;
        mLayout.cancelAnimationsOnView(bubble);

        mMagnetizedBubbleDraggingOut = new MagnetizedObject<View>(