Fix a bug in chat that caused crash when leaving sometimes

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2019-01-24 12:07:11 +01:00
parent cef0d20e62
commit 7c275ccfbf

View File

@ -909,7 +909,9 @@ public class ChatController extends BaseController implements MessagesListAdapte
}
}
adapter.addToEnd(chatMessageList, false);
if (adapter != null) {
adapter.addToEnd(chatMessageList, false);
}
} else {