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

This commit is contained in:
Konrad Pozniak 2020-01-13 21:12:33 +01:00 committed by GitHub
parent 611f9118ef
commit cd52caf9e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}
}