Tencent Cloud Chat features a comprehensive suite of solutions including global access, one-to-one chat, group chat, message push, profile and relationship chain hosting, and account authentication.
[ java.lang.NullPointerException]
Attempt to invoke virtual method 'void com.tencent.qcloud.tuikit.tuichat.presenter.ChatPresenter.setMessageListAdapter(com.tencent.qcloud.tuikit.tuichat.ui.interfaces.IMessageAdapter)' on a null object reference
com.tencent.qcloud.tuikit.tuichat.ui.view.ChatView.setPresenter(ChatView.java:297)
Attempt to invoke virtual method 'void com.tencent.qcloud.tuikit.tuichat.presenter.ChatPresenter.setMessageListAdapter(com.tencent.qcloud.tuikit.tuichat.ui.interfaces.IMessageAdapter)' on a null object reference
issue标题:ChatPresenter.setMessageListAdapter()' on a null object reference
【Android】-【SDk 6.6.3002 @2022.08.18 - Enhanced Edition - 增强版 - 单聊部分】 issue内容:
【当前现象】:闪退 【集成包】:IMSDK 【机型】: 【之前版本有无此问题】: 【有无日志或者描述、截图】: -------------------------完整的示例如下:-------------------------
java.lang.NullPointerException
Attempt to invoke virtual method 'void com.tencent.qcloud.tuikit.tuichat.presenter.ChatPresenter.setMessageListAdapter(com.tencent.qcloud.tuikit.tuichat.ui.interfaces.IMessageAdapter)' on a null object reference
com.tencent.qcloud.tuikit.tuichat.ui.view.ChatView.setPresenter(ChatView.java:297)
com.tencent.qcloud.tuikit.tuichat.ui.page.TUIC2CChatFragment.initView(TUIC2CChatFragment.java:55)
------------------------- 修复方案 ------------------------- 将Activity中的 C2CChatPresenter 成员移到 TUIC2CChatFragment 中。群聊也一样处理。