Fixed crash in call history
This commit is contained in:
parent
b443b6efea
commit
93b96079b1
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue