diff options
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/notification/row/BindStage.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/BindStage.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/BindStage.java index cc917dda2a80..7c41800d880d 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/BindStage.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/BindStage.java @@ -69,9 +69,12 @@ public abstract class BindStage<Params> extends BindRequester { if (params == null) { // TODO: This should throw an exception but there are some cases of re-entrant calls // in NotificationEntryManager (e.g. b/155324756) that cause removal in update that - // lead to inflation after the notification is "removed". + // lead to inflation after the notification is "removed". We return an empty params + // to avoid any NPEs for now, but we should remove this when all re-entrant calls are + // fixed. Log.wtf(TAG, String.format("Entry does not have any stage parameters. key: %s", entry.getKey())); + return newStageParams(); } return params; } |