Fix crash when call a non-contact on dialer

This commit is contained in:
Erwan Croze 2017-03-02 16:02:14 +01:00
parent 160b0c3b8b
commit 07c67f3fec

View file

@ -227,6 +227,7 @@ public class ContactsManager extends ContentObserver {
if (lc != null) { if (lc != null) {
lpc = lc.getDefaultProxyConfig(); lpc = lc.getDefaultProxyConfig();
} }
if (lpc == null) return null;
String normalized = lpc.normalizePhoneNumber(phoneNumber); String normalized = lpc.normalizePhoneNumber(phoneNumber);
LinphoneAddress addr = lpc.normalizeSipUri(normalized); LinphoneAddress addr = lpc.normalizeSipUri(normalized);