fix possible npe

This commit is contained in:
kosyak 2024-12-10 21:02:10 +01:00
parent 82d21d51bb
commit 414b0c7978

View file

@ -1388,7 +1388,7 @@ public class ConversationFragment extends XmppFragment
public void onCreate(Bundle savedInstanceState) { public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setHasOptionsMenu(true); setHasOptionsMenu(true);
if (savedInstanceState == null) { if (savedInstanceState == null && conversation != null) {
conversation.jumpToLatest(); conversation.jumpToLatest();
} }
} }