fixed npe
This commit is contained in:
parent
78bd6c423f
commit
92dcf85701
|
@ -1289,11 +1289,13 @@ public class XmppConnectionService extends Service {
|
|||
|
||||
public Contact findContact(String uuid) {
|
||||
Contact contact = this.databaseBackend.getContact(uuid);
|
||||
if (contact!=null) {
|
||||
for (Account account : getAccounts()) {
|
||||
if (contact.getAccountUuid().equals(account.getUuid())) {
|
||||
contact.setAccount(account);
|
||||
}
|
||||
}
|
||||
}
|
||||
return contact;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue