From 414b0c7978e6f522bc920a506260fc71af46c48c Mon Sep 17 00:00:00 2001 From: kosyak Date: Tue, 10 Dec 2024 21:02:10 +0100 Subject: [PATCH] fix possible 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 6cd27a210..75628727a 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java @@ -1388,7 +1388,7 @@ public class ConversationFragment extends XmppFragment public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setHasOptionsMenu(true); - if (savedInstanceState == null) { + if (savedInstanceState == null && conversation != null) { conversation.jumpToLatest(); } }