use getAttributeAsJid method

This commit is contained in:
iNPUTmice 2014-11-27 10:26:34 +01:00
parent 7a75a8bc5a
commit 0b8032dbd6
1 changed files with 1 additions and 6 deletions

View File

@ -319,12 +319,7 @@ public class MessageParser extends AbstractParser implements
}
} else if (packet.hasChild("x", "jabber:x:conference")) {
Element x = packet.findChild("x", "jabber:x:conference");
Jid jid;
try {
jid = Jid.fromString(x.getAttribute("jid"));
} catch (InvalidJidException e) {
jid = null;
}
Jid jid = x.getAttributeAsJid("jid");
String password = x.getAttribute("password");
if (jid != null) {
Conversation conversation = mXmppConnectionService