diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-09-22 16:04:37 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-09-22 16:04:37 +0200 |
commit | 59009ded8267ecd6eaede0ca50d40b5f46d48b56 (patch) | |
tree | c21626965dab9a6d7e9c9fbb7d7323263d86fb0a /src/eu | |
parent | 013ba16421efe1a2b2275b24bd6dc88aa6a0cca8 (diff) |
fixed very rare npe
Diffstat (limited to 'src/eu')
-rw-r--r-- | src/eu/siacs/conversations/xmpp/XmppConnection.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/xmpp/XmppConnection.java b/src/eu/siacs/conversations/xmpp/XmppConnection.java index e02c772d8..796920e29 100644 --- a/src/eu/siacs/conversations/xmpp/XmppConnection.java +++ b/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; |