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 1e14626d9c997..aeb7ab7fa110a 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java @@ -3065,7 +3065,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