摘要:
用Smack开发andorid IM, 开发群组时想获取服务器上所有的聊天室,调用下面方法时出现NullPointerException:Collection hostrooms = MultiUserChat.getHostedRooms(ClientConnectionServer.connection, ClientConnectionServer.connection.getServiceName());而方法的2个参数都不为空,感觉很怪,就去国外论坛看了原因,查了几篇文章发现解决办法,下面是论坛里的一些信息:The problem is that thestatic block of 阅读全文