注册

自动登陆后收的消息导致程序crash

如题。崩溃时函数栈见附件。崩溃时console里输出如下:
RECV: {"from":null,"to":"13752450315","bodies":[{"action":"deleteAction","type":"cmd"}],"ext":{"groupId":"138095541996225092","content":"","groupname":null}}EaseMob-Group{"from":null,"to":"13752450315","bodies":[{"action":"deleteAction","type":"cmd"}],"ext":{"groupId":"138092905217655352","content":"","groupname":null}}{"from":null,"to":"13752450315","bodies":[{"action":"deleteAction","type":"cmd"}],"ext":{"groupId":"138095541996225092","content":"","groupname":null}}delete-group

SEND:

-[NSNull stringByTrimmingCharactersInSet:]: unrecognized selector sent to instance 0x19e832ea8

看起来像是传过来的消息里from或groupname没有导致解析失败导致的。这种情况下该如何处理?
已邀请:
from字段不要置为空,要么有这个字段  要么没有。
{"from":null,"t   你看这里  from:null  也就是说 发送方这样发是不可以的。不是你的问题,是发送方消息构造的问题。
发送方 改一下消息格式。要么别要from字段   要么 别为空

要回复问题请先登录注册