修复:聊天获取AtUserId为空的空指针错误

This commit is contained in:
zlzw 2022-10-10 17:11:35 +08:00
parent 8f37f3cc6d
commit d1e40abe2e

View File

@ -388,7 +388,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
Bus.get().post(new LiveAudienceEvent() Bus.get().post(new LiveAudienceEvent()
.setType(LiveAudienceEvent.LiveAudienceType.NEW_MESSAGE_REMINDER)); .setType(LiveAudienceEvent.LiveAudienceType.NEW_MESSAGE_REMINDER));
} }
if (bean.getAtUserID().contains(String.valueOf(model.getId()))) { if (bean.getAtUserID()!=null&&bean.getAtUserID().contains(String.valueOf(model.getId()))) {
Bus.get().post(new LiveAudienceEvent() Bus.get().post(new LiveAudienceEvent()
.setType(LiveAudienceEvent.LiveAudienceType.AT_MESSAGE)); .setType(LiveAudienceEvent.LiveAudienceType.AT_MESSAGE));
mPosition = size + 1; mPosition = size + 1;