mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 03:32:15 -05:00
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
Block a user