aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMegha Joshi <mjoshi@google.com>2009-10-06 11:01:46 -0700
committerMegha Joshi <mjoshi@google.com>2009-10-06 11:01:46 -0700
commite2a3fb8c60d68aaef5f20587e5c9cb3f6f3ffa22 (patch)
tree5301e34f04864f02efcdba304174027f0092186d
parentdd0e0f44fe403ff201d46d5534f7f1148e5ad729 (diff)
downloadContactsProvider-e2a3fb8c60d68aaef5f20587e5c9cb3f6f3ffa22.tar.gz
Fix lookup query throwing exception for null displayNames.
Bug: 2133257 Dr No: TS
-rw-r--r--src/com/android/providers/contacts/ContactLookupKey.java4
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) {