Is it possible that there is a null-pointer exception which is catched in a strange way when trying to use .getMode() on Presence Packets that appear when user comes online (or back online from away)?
When someone comes online, it’'s usually not displayed as a “mode” attribute in the packets. but they are type=available and NO mode
According to http://www.igniterealtime.org/builds/smack/docs/latest/javadoc/org/jivesoftware/ smack/packet/Presence.Mode.html there is a mode attribute called “available”, but I haven’'t received that mode on my tests.
On those packets, the method should at least return an empty string or null. But as soon as I touch .getMode() on one of those packets, my current method simply seems to “break()”. (no stacktrace)
Is it a bug or did I do something wrong?