mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -05:00
fixed npe if roster jid couldnt be parsed
This commit is contained in:
parent
21f77cd1e3
commit
5992d4ac00
@ -25,12 +25,9 @@ public class IqParser extends AbstractParser implements OnIqPacketReceived {
|
||||
}
|
||||
for (Element item : query.getChildren()) {
|
||||
if (item.getName().equals("item")) {
|
||||
Jid jid;
|
||||
try {
|
||||
jid = Jid.fromString(item.getAttribute("jid"));
|
||||
} catch (final InvalidJidException e) {
|
||||
// TODO: Handle this?
|
||||
jid = null;
|
||||
final Jid jid = item.getAttributeAsJid("jid");
|
||||
if (jid == null) {
|
||||
break;
|
||||
}
|
||||
String name = item.getAttribute("name");
|
||||
String subscription = item.getAttribute("subscription");
|
||||
|
Loading…
Reference in New Issue
Block a user