diff options
author | Megha Joshi <mjoshi@google.com> | 2009-10-06 11:01:46 -0700 |
---|---|---|
committer | Megha Joshi <mjoshi@google.com> | 2009-10-06 11:01:46 -0700 |
commit | e2a3fb8c60d68aaef5f20587e5c9cb3f6f3ffa22 (patch) | |
tree | 5301e34f04864f02efcdba304174027f0092186d /src | |
parent | dd0e0f44fe403ff201d46d5534f7f1148e5ad729 (diff) | |
download | ContactsProvider-e2a3fb8c60d68aaef5f20587e5c9cb3f6f3ffa22.tar.gz |
Fix lookup query throwing exception for null displayNames.
Bug: 2133257
Dr No: TS
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/providers/contacts/ContactLookupKey.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/providers/contacts/ContactLookupKey.java b/src/com/android/providers/contacts/ContactLookupKey.java index bc815838..77821985 100644 --- a/src/com/android/providers/contacts/ContactLookupKey.java +++ b/src/com/android/providers/contacts/ContactLookupKey.java @@ -58,8 +58,8 @@ public class ContactLookupKey { public static void appendToLookupKey(StringBuilder lookupKey, String accountType, String accountName, String sourceId, String displayName) { - if (TextUtils.isEmpty(sourceId) && TextUtils.isEmpty(displayName)) { - return; + if (displayName == null) { + displayName = ""; } if (lookupKey.length() != 0) { |