use getAttributeAsJid method
This commit is contained in:
parent
7a75a8bc5a
commit
0b8032dbd6
|
@ -319,12 +319,7 @@ public class MessageParser extends AbstractParser implements
|
||||||
}
|
}
|
||||||
} else if (packet.hasChild("x", "jabber:x:conference")) {
|
} else if (packet.hasChild("x", "jabber:x:conference")) {
|
||||||
Element x = packet.findChild("x", "jabber:x:conference");
|
Element x = packet.findChild("x", "jabber:x:conference");
|
||||||
Jid jid;
|
Jid jid = x.getAttributeAsJid("jid");
|
||||||
try {
|
|
||||||
jid = Jid.fromString(x.getAttribute("jid"));
|
|
||||||
} catch (InvalidJidException e) {
|
|
||||||
jid = null;
|
|
||||||
}
|
|
||||||
String password = x.getAttribute("password");
|
String password = x.getAttribute("password");
|
||||||
if (jid != null) {
|
if (jid != null) {
|
||||||
Conversation conversation = mXmppConnectionService
|
Conversation conversation = mXmppConnectionService
|
||||||
|
|
Loading…
Reference in New Issue