aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-03-31 16:48:05 +0200
committerChristian Schneppe <christian@pix-art.de>2018-03-31 16:48:05 +0200
commit6cfb99ae03a5ea8c992db099caa28ab79b0fbfce (patch)
tree87443eadb4a5ed3afd33a1ba1eed2fd9f5e2899a
parenta539271df66a6c519f995e693c3414516f600f66 (diff)
fix crash if binding is null
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConversationsOverviewFragment.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationsOverviewFragment.java b/src/main/java/de/pixart/messenger/ui/ConversationsOverviewFragment.java
index d72132366..35e1e02b7 100644
--- a/src/main/java/de/pixart/messenger/ui/ConversationsOverviewFragment.java
+++ b/src/main/java/de/pixart/messenger/ui/ConversationsOverviewFragment.java
@@ -148,6 +148,9 @@ public class ConversationsOverviewFragment extends XmppFragment {
}
private ScrollState getScrollState() {
+ if (this.binding == null) {
+ return null;
+ }
int position = this.binding.list.getFirstVisiblePosition();
final View view = this.binding.list.getChildAt(0);
if (view != null) {