From f6768651e5a6f7c44c11b3a0c8160b87389424ff Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sun, 22 Apr 2018 14:21:40 +0200 Subject: null check for conversation --- src/main/java/de/pixart/messenger/ui/ConversationFragment.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java index 8e71a028d..332b62b7b 100644 --- a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java +++ b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java @@ -216,6 +216,9 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke } private void toggleScrollDownButton(AbsListView listView) { + if (conversation == null) { + return; + } if (scrolledToBottom(listView)) { lastMessageUuid = null; hideUnreadMessagesCount(); -- cgit v1.2.3