Fixed crash in call history

This commit is contained in:
Sylvain Berfini 2017-11-21 17:58:58 +01:00
parent b443b6efea
commit 93b96079b1

View file

@ -233,6 +233,9 @@ public class ContactsManager extends ContentObserver {
String normalized = lpc.normalizePhoneNumber(phoneNumber); String normalized = lpc.normalizePhoneNumber(phoneNumber);
Address addr = lpc.normalizeSipUri(normalized); Address addr = lpc.normalizeSipUri(normalized);
if (addr == null) {
return null;
}
addr.setMethodParam(";user=phone"); addr.setMethodParam(";user=phone");
Friend lf = lc.findFriend(addr); // Without this, the hashmap inside liblinphone won't find it... Friend lf = lc.findFriend(addr); // Without this, the hashmap inside liblinphone won't find it...
if (lf != null) { if (lf != null) {