From 11316a949d2ab32103112de9860c4a48ee46a406 Mon Sep 17 00:00:00 2001 From: kosyak Date: Mon, 30 Oct 2023 19:59:43 +0100 Subject: [PATCH] fix crash --- .../java/eu/siacs/conversations/ui/ConversationFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java index 67e6b8275..34425eec9 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java @@ -302,7 +302,7 @@ public class ConversationFragment extends XmppFragment toggleScrollDownButton(view); synchronized (ConversationFragment.this.messageList) { boolean paginateBackward = firstVisibleItem < 5; - boolean paginationForward = conversation.isInHistoryPart() && firstVisibleItem + visibleItemCount + 5 > totalItemCount; + boolean paginationForward = conversation != null && conversation.isInHistoryPart() && firstVisibleItem + visibleItemCount + 5 > totalItemCount; loadMoreMessages(paginateBackward, paginationForward, view); } }