fixed very rare npe
This commit is contained in:
parent
013ba16421
commit
59009ded82
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue