From cd52caf9e99b59dc8b34ce9d62071d8109ffac4f Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Mon, 13 Jan 2020 21:12:33 +0100 Subject: [PATCH] fix crash in NotificationAdapter when status is null (#1634) --- .../com/keylesspalace/tusky/adapter/NotificationsAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java b/app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java index 35a5526a..6a5bc073 100644 --- a/app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java +++ b/app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java @@ -199,7 +199,7 @@ public class NotificationsAdapter extends RecyclerView.Adapter { } else { if (payloadForHolder instanceof List) for (Object item : (List) payloadForHolder) { - if (StatusBaseViewHolder.Key.KEY_CREATED.equals(item)) { + if (StatusBaseViewHolder.Key.KEY_CREATED.equals(item) && statusViewData != null) { holder.setCreatedAt(statusViewData.getCreatedAt()); } }