From b851fee8577246eb9246d5c7476d98de59a16f8a Mon Sep 17 00:00:00 2001 From: Jeff DeCew Date: Thu, 22 Oct 2020 12:29:40 -0400 Subject: [PATCH] Fix NPE in NotificationRow Fixes: 171461675 Test: SystemUITests Change-Id: Iff04960d33f12abd203daa2ce519ba2ccae84f01 --- .../statusbar/notification/row/ExpandableNotificationRow.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java index f788dfe47a610..3f13306b7cf20 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java @@ -2856,7 +2856,8 @@ public class ExpandableNotificationRow extends ActivatableNotificationView } float x = event.getX(); float y = event.getY(); - NotificationHeaderView header = getVisibleNotificationViewWrapper().getNotificationHeader(); + NotificationViewWrapper wrapper = getVisibleNotificationViewWrapper(); + NotificationHeaderView header = wrapper == null ? null : wrapper.getNotificationHeader(); if (header != null && header.isInTouchRect(x - getTranslation(), y)) { return true; }