fixed npe

This commit is contained in:
iNPUTmice 2014-09-07 00:09:12 +02:00
parent a2987edd95
commit 890fb9a1b4
1 changed files with 3 additions and 0 deletions

View File

@ -177,6 +177,9 @@ public class ConversationFragment extends Fragment {
private ConversationActivity activity;
private void sendMessage() {
if (this.conversation==null) {
return;
}
if (mEditMessage.getText().length() < 1) {
if (this.conversation.getMode() == Conversation.MODE_MULTI) {
conversation.setNextPresence(null);