powered by Jive Software

Null pointer exception

Hi,

Can anybody tell me what’s causing this NPE?

05:47:17 PM RCV (32573029): <iq to="anon3@anonServer.com/Smack" id=“YFg41-91” type=“result”><query xmlns=“jabber:iq:roster”><item j

id="anon1@gmail.com" subscription=“both”></item><item jid="anon2@gmail.com" subscription=“both”></item><item jid="anon4

@aol.com" subscription=“to”></item><item jid="anon5@aol.com" subscription=“both”></item><item jid="anon3@gmail.com" ask="subscrib

e"></item><item jid="anon6@gmail.com" subscription=“both”></item><item jid=“rostcast@services.server” subscription=“both” name="

Roster Broadcast"><group>Services</group></item><item jid=“broadcast@services.server” subscription=“both” name=“Sqwawk Box”><group

>Services</group></item></query></iq>

05:47:17 PM SENT (32573029): <presence id=“YFg41-93” type=“unavailable”></presence>

05:47:17 PM SENT (32573029): </stream:stream>

java.lang.NullPointerException: Name is null

at java.lang.Enum.valueOf(Unknown Source)

at org.jivesoftware.smack.packet.RosterPacket$ItemType.valueOf(RosterPacket.java:2 68)

at org.jivesoftware.smack.PacketReader.parseRoster(PacketReader.java:697)

at org.jivesoftware.smack.PacketReader.parseIQ(PacketReader.java:582)

at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:275)

at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)

at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)

05:47:17 PM Connection closed due to an exception (32573029)

java.lang.NullPointerException: Name is null

at java.lang.Enum.valueOf(Unknown Source)

at org.jivesoftware.smack.packet.RosterPacket$ItemType.valueOf(RosterPacket.java:2 68)

at org.jivesoftware.smack.PacketReader.parseRoster(PacketReader.java:697)

at org.jivesoftware.smack.PacketReader.parseIQ(PacketReader.java:582)

at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:275)

at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)

at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)