powered by Jive Software

NullPointer Exception in Smack 2.1

java.lang.NullPointerException

at org.jivesoftware.smack.Roster.fireRosterPresenceEvent(Roster.java:590)

at org.jivesoftware.smack.Roster.access$500(Roster.java:42)

at org.jivesoftware.smack.Roster$PresencePacketListener.processPacket(Roster.java: 624)

at org.jivesoftware.smack.PacketReader$ListenerWrapper.notifyListener(PacketReader .java:739)

at org.jivesoftware.smack.PacketReader.processListeners(PacketReader.java:250)

at org.jivesoftware.smack.PacketReader.access$100(PacketReader.java:43)

at org.jivesoftware.smack.PacketReader$2.run(PacketReader.java:72)

after

java.lang.IllegalStateException: Not connected to server.

at org.jivesoftware.smack.XMPPConnection.sendPacket(XMPPConnection.java:672)

at org.jivesoftware.smack.Roster.createEntry(Roster.java:242)

This probably has something to do with your client code rather than an error with smack

Thank you, It is a standard answer!