aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-04-22 14:21:40 +0200
committerChristian Schneppe <christian@pix-art.de>2018-04-22 14:21:40 +0200
commitf6768651e5a6f7c44c11b3a0c8160b87389424ff (patch)
tree209e308ad9b3838ad92cde6fa887ae3f3bf17239 /src/main/java/de/pixart
parent9ab8d4400a215aee4ef5722395d6f06441bc11a1 (diff)
null check for conversation
Diffstat (limited to 'src/main/java/de/pixart')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConversationFragment.java3
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();