From 53a4c6cbcb6424c6ec1f77fdf8c8e411e526a3df Mon Sep 17 00:00:00 2001 From: kosyak Date: Tue, 31 Oct 2023 13:11:41 +0100 Subject: [PATCH] fix npe --- .../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 12ee0c763..655244e26 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java @@ -311,7 +311,7 @@ public class ConversationFragment extends XmppFragment }; private void loadMoreMessages(boolean paginateBackward, boolean paginationForward, AbsListView view) { - if (paginateBackward && !conversation.messagesLoaded.get()) { + if (paginateBackward && (conversation != null && !conversation.messagesLoaded.get())) { paginateBackward = false; }