fix crash in NotificationAdapter when status is null (#1634)

main
Konrad Pozniak 5 years ago committed by GitHub
parent ab6c79a5d7
commit 31b29047c7
  1. 2
      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());
}
}

Loading…
Cancel
Save