Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46b15454 authored by Andrew Lee's avatar Andrew Lee Committed by Android Git Automerger
Browse files

am f72637df: DO NOT MERGE Handle null contact lookup.

* commit 'f72637df':
  DO NOT MERGE Handle null contact lookup.
parents d022ce93 f72637df
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -155,9 +155,13 @@ public class CallLogAsyncTaskUtil {
            boolean isVoicemail = PhoneNumberUtil.isVoicemailNumber(context, accountHandle, number);
            boolean shouldLookupNumber =
                    PhoneNumberUtil.canPlaceCallsTo(number, numberPresentation) && !isVoicemail;
            ContactInfo info = shouldLookupNumber
                            ? contactInfoHelper.lookupNumber(number, countryIso)
                            : ContactInfo.EMPTY;

            ContactInfo info = ContactInfo.EMPTY;
            if (shouldLookupNumber) {
                ContactInfo lookupInfo = contactInfoHelper.lookupNumber(number, countryIso);
                info = lookupInfo != null ? lookupInfo : ContactInfo.EMPTY;
            }

            PhoneCallDetails details = new PhoneCallDetails(
                    context, number, numberPresentation, info.formattedNumber, isVoicemail);