注册

抓包的情况下崩溃 EMChatManager.getInstance().sendMessage

java.lang.NullPointerException: Attempt to read from field 'java.lang.String com.easemob.chat.core.j$c.a' on a null object reference
                                                                          at com.easemob.cloud.HttpClientManager.getNewHost(Unknown Source)
                                                                          at com.easemob.cloud.HttpFileManager.sendFiletoServerHttpWithCountDown(Unknown Source)
                                                                          at com.easemob.cloud.HttpFileManager.access$100(Unknown Source)
                                                                          at com.easemob.cloud.HttpFileManager$5.run(Unknown Source)
 
我试了try catch 也catch不了异常 
已邀请:
你好,这个应该是一个空指针异常,我们会增加此处为空的判断。
1、发送消息的时候 看下封装的消息方法中 代码写的是不是全的,具体按照demo中的发送消息的代码执行下。
2、换成4g,登录的代码逻辑按照demo中的登陆代码执行下。

要回复问题请先登录注册