src/eu/siacs/conversations/xmpp/XmppConnection.java 🔗
@@ -656,7 +656,7 @@ public class XmppConnection implements Runnable {
Element bind = packet.findChild("bind");
if (bind != null) {
Element jid = bind.findChild("jid");
- if (jid != null) {
+ if (jid != null && jid.getContent() != null) {
account.setResource(jid.getContent().split("/",2)[1]);
if (streamFeatures.hasChild("sm", "urn:xmpp:sm:3")) {
smVersion = 3;