Seen with tinder 1.2.1, but seems to exist with 1.2.2 as well.
Consider
new JID(“a/@b”);
–>
java.lang.StringIndexOutOfBoundsException: String index out of range: -2
at java.lang.String.substring(String.java:1937)
at org.xmpp.packet.JID.getParts(JID.java:604)
at org.xmpp.packet.JID.(JID.java:468)
an InvalidJID exception may be indeed much better. Actually a “/” must be escaped as “\2f” in the node identifier as described in http://xmpp.org/extensions/xep-0106.html.