diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-04-22 14:21:40 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-04-22 14:21:40 +0200 |
commit | f6768651e5a6f7c44c11b3a0c8160b87389424ff (patch) | |
tree | 209e308ad9b3838ad92cde6fa887ae3f3bf17239 /src/main/java/de/pixart | |
parent | 9ab8d4400a215aee4ef5722395d6f06441bc11a1 (diff) |
null check for conversation
Diffstat (limited to 'src/main/java/de/pixart')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ConversationFragment.java | 3 |
1 files changed, 3 insertions, 0 deletions
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(); |