fixed very rare npe

This commit is contained in:
iNPUTmice 2014-09-22 16:04:37 +02:00
parent 013ba16421
commit 59009ded82

View File

@ -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;