接收到添加好友请求时,在EMPresenceHandler中发生NullPointerException
02-02 14:25:30.700: D/ContactAdapter(29038): contacts original size: 1
02-02 14:25:30.700: D/ContactAdapter(29038): contacts copy size: 1
02-02 14:25:30.700: D/ContactAdapter(29038): contacts filter results size: 1
02-02 14:25:30.710: D/ContactAdapter(29038): publish contacts filter results size: 1
02-02 14:25:38.100: D/SMACK:FileDebugger(29038): RCV from182.92.20.34:443(1156694528):啊
02-02 14:25:38.100: D/EMPresenceHandler(29038): isresp:false reason:啊
02-02 14:25:38.110: D/EMPresenceHandler(29038): send roster broadcast username:138001 reason:啊resp:false
02-02 14:25:38.110: D/PacketReader(29038): Exception in packet listener: java.lang.NullPointerException
02-02 14:25:38.110: W/System.err(29038): java.lang.NullPointerException
02-02 14:25:38.110: W/System.err(29038): at com.easemob.chat.EMPresenceHandler.processRosterPresence(Unknown Source)
02-02 14:25:38.110: W/System.err(29038): at com.easemob.chat.EMChatManager.processRosterPresence(Unknown Source)
02-02 14:25:38.110: W/System.err(29038): at com.easemob.chat.EMChatManager.access$0(Unknown Source)
02-02 14:25:38.110: W/System.err(29038): at com.easemob.chat.EMChatManager$SingleInvitationListener.processPacket(Unknown Source)
02-02 14:25:38.110: W/System.err(29038): at org.jivesoftware.smack.Connection$ListenerWrapper.notifyListener(Unknown Source)
02-02 14:25:38.120: W/System.err(29038): at org.jivesoftware.smack.PacketReader$ListenerNotification.run(Unknown Source)
02-02 14:25:38.120: W/System.err(29038): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
02-02 14:25:38.120: W/System.err(29038): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
02-02 14:25:38.120: W/System.err(29038): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
02-02 14:25:38.120: W/System.err(29038): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
02-02 14:25:38.120: W/System.err(29038): at java.lang.Thread.run(Thread.java:841)
02-02 14:25:30.700: D/ContactAdapter(29038): contacts copy size: 1
02-02 14:25:30.700: D/ContactAdapter(29038): contacts filter results size: 1
02-02 14:25:30.710: D/ContactAdapter(29038): publish contacts filter results size: 1
02-02 14:25:38.100: D/SMACK:FileDebugger(29038): RCV from182.92.20.34:443(1156694528):
02-02 14:25:38.100: D/EMPresenceHandler(29038): isresp:false reason:啊
02-02 14:25:38.110: D/EMPresenceHandler(29038): send roster broadcast username:138001 reason:啊resp:false
02-02 14:25:38.110: D/PacketReader(29038): Exception in packet listener: java.lang.NullPointerException
02-02 14:25:38.110: W/System.err(29038): java.lang.NullPointerException
02-02 14:25:38.110: W/System.err(29038): at com.easemob.chat.EMPresenceHandler.processRosterPresence(Unknown Source)
02-02 14:25:38.110: W/System.err(29038): at com.easemob.chat.EMChatManager.processRosterPresence(Unknown Source)
02-02 14:25:38.110: W/System.err(29038): at com.easemob.chat.EMChatManager.access$0(Unknown Source)
02-02 14:25:38.110: W/System.err(29038): at com.easemob.chat.EMChatManager$SingleInvitationListener.processPacket(Unknown Source)
02-02 14:25:38.110: W/System.err(29038): at org.jivesoftware.smack.Connection$ListenerWrapper.notifyListener(Unknown Source)
02-02 14:25:38.120: W/System.err(29038): at org.jivesoftware.smack.PacketReader$ListenerNotification.run(Unknown Source)
02-02 14:25:38.120: W/System.err(29038): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
02-02 14:25:38.120: W/System.err(29038): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
02-02 14:25:38.120: W/System.err(29038): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
02-02 14:25:38.120: W/System.err(29038): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
02-02 14:25:38.120: W/System.err(29038): at java.lang.Thread.run(Thread.java:841)
没有找到相关结果
已邀请:
3 个回复
[已注销]
dkw1225
自己的类中的报错信息有没有-〉没有报错误
这个问题不是每次发生,但只要出现这个exception后,每次有人发送添加好友请求过来时就一直报这个 exception
lzan13 - 慢慢来,一步一个脚印?