Prevent crash when remote provisioning contains linphone friends

This commit is contained in:
Sylvain Berfini 2015-10-22 08:59:08 +02:00
parent 9a155140e3
commit 41835e4d08

View file

@ -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());
}