Hello everybody,
I am currently working on a Jabber Client using the Jive Smack API and I have some difficulties with the MultiUserChat…
When I use the “kickParticipant” method, I have stranges results with the kicked entry.
Every other participants of the MultiUserChat normally see the ParticipantStatusListener - kicked event.
But the kicked participant get a Null PointerException, even if he has not registered a UserStatusListener.
Here is the Stack trace generated :
java.lang.NullPointerException
at org.jivesoftware.smackx.muc.MultiUserChat.fireUserStatusListeners(MultiUserChat .java:1940)
at org.jivesoftware.smackx.muc.MultiUserChat.checkPresenceCode(MultiUserChat.java: 2352)
at org.jivesoftware.smackx.muc.MultiUserChat.access$10(MultiUserChat.java:2339)
at org.jivesoftware.smackx.muc.MultiUserChat$8.processPacket(MultiUserChat.java:20 97)
at org.jivesoftware.smack.PacketReader$ListenerWrapper.notifyListener(PacketReader .java:576)
at org.jivesoftware.smack.PacketReader.processListeners(PacketReader.java:231)
at org.jivesoftware.smack.PacketReader.access$100(PacketReader.java:43)
at org.jivesoftware.smack.PacketReader$2.run(PacketReader.java:71)
I’'ve examinated the MultiUserChat sourcecode and as it seems, this is due to the call of “mucUser.getItem().getActor()” on line 2352 of MultiUserChat (release 1.5) which return null.
So I am wondering If I made something wrong (I hope I have encountered a “common” mistake) or if I happily discovered some kind of bug…
A little help would be greatly appreciated (as I am getting mad with this), thank you.
Snybril