Prevent crash when remote provisioning contains linphone friends
This commit is contained in:
parent
9a155140e3
commit
41835e4d08
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ public class Contact implements Serializable {
|
|||
LinphoneCore lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
|
||||
if(lc != null && lc.getFriendList() != null) {
|
||||
for (LinphoneFriend friend :lc.getFriendList()){
|
||||
if (friend.getRefKey().equals(id)) {
|
||||
if (id.equals(friend.getRefKey())) {
|
||||
hasFriends = true;
|
||||
this.numbersOrAddresses.add(friend.getAddress().asStringUriOnly());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue