diff options
author | iNPUTmice <daniel@gultsch.de> | 2015-02-18 13:11:41 +0100 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2015-02-18 13:11:41 +0100 |
commit | da2bc6db232d15420d8dde6ca9d8890ef8af5c6a (patch) | |
tree | 8601c8d755df53942b167883224664ca31866ee3 /src/main | |
parent | a8ec36cda816e37fae5abf4a5947872cbe834fdc (diff) |
avoid weird npe. fixed #991
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/ConversationFragment.java | 4 |
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); |