diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java index 2f786d97fe959..20f3fc955ba5b 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java @@ -2535,7 +2535,9 @@ public class NotificationPanelViewController extends PanelViewController { break; case FLING_HIDE: default: - mQs.closeDetail(); + if (mQs != null) { + mQs.closeDetail(); + } target = 0; } if (target == mQsExpansionHeight) {