Merge 356e626a86d37f4da1df557e590734abc735f21b on remote branch
Change-Id: I7b2204dcff7d42cca8e03b0d9bac57d3a9469446
diff --git a/src/com/android/dialer/calllog/ContactInfoHelper.java b/src/com/android/dialer/calllog/ContactInfoHelper.java
index ea39d03..c07ca2a 100644
--- a/src/com/android/dialer/calllog/ContactInfoHelper.java
+++ b/src/com/android/dialer/calllog/ContactInfoHelper.java
@@ -292,10 +292,13 @@
}
String combName = "";
for (String num : nums) {
- ContactInfo singleCi = lookupContactFromUri(getContactInfoLookupUri(num),
- isSip);
+ ContactInfo singleCi = null;
+ if (!TextUtils.isEmpty(num)) {
+ singleCi = lookupContactFromUri(
+ getContactInfoLookupUri(num), isSip);
+ }
// If contact does not exist, need to avoid changing static empty-contact.
- if (singleCi == ContactInfo.EMPTY) {
+ if (singleCi == null || singleCi == ContactInfo.EMPTY) {
singleCi = new ContactInfo();
}
if (TextUtils.isEmpty(singleCi.name)) {