diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java index 8044b07a351b2..efe049ab2a7b1 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java @@ -3066,7 +3066,7 @@ public class NotificationStackScrollLayout extends ViewGroup } if (!childWasSwipedOut) { Rect clipBounds = child.getClipBounds(); - childWasSwipedOut = clipBounds.height() == 0; + childWasSwipedOut = clipBounds != null && clipBounds.height() == 0; } int animationType = childWasSwipedOut ? AnimationEvent.ANIMATION_TYPE_REMOVE_SWIPED_OUT