fixed very rare npe
This commit is contained in:
parent
937fc51b50
commit
a059dfab2c
|
@ -27,6 +27,7 @@ public class IqParser extends AbstractParser implements OnIqPacketReceived {
|
|||
if (!contact.getOption(Contact.Options.DIRTY_PUSH)) {
|
||||
contact.setServerName(name);
|
||||
}
|
||||
if (subscription!=null) {
|
||||
if (subscription.equals("remove")) {
|
||||
contact.resetOption(Contact.Options.IN_ROSTER);
|
||||
contact.resetOption(Contact.Options.DIRTY_DELETE);
|
||||
|
@ -38,6 +39,7 @@ public class IqParser extends AbstractParser implements OnIqPacketReceived {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
mXmppConnectionService.updateRosterUi();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue