aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2015-02-18 13:11:41 +0100
committeriNPUTmice <daniel@gultsch.de>2015-02-18 13:11:41 +0100
commitda2bc6db232d15420d8dde6ca9d8890ef8af5c6a (patch)
tree8601c8d755df53942b167883224664ca31866ee3 /src
parenta8ec36cda816e37fae5abf4a5947872cbe834fdc (diff)
avoid weird npe. fixed #991
Diffstat (limited to 'src')
-rw-r--r--src/main/java/eu/siacs/conversations/ui/ConversationFragment.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java
index d9f386d3..91aaab00 100644
--- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java
+++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java
@@ -321,7 +321,9 @@ public class ConversationFragment extends Fragment {
@Override
public void onClick(View v) {
- activity.hideConversationsOverview();
+ if (activity != null) {
+ activity.hideConversationsOverview();
+ }
}
});
mEditMessage.setOnEditorActionListener(mEditorActionListener);