diff options
author | Tom Taylor <tomtaylor@google.com> | 2010-05-07 11:50:05 -0700 |
---|---|---|
committer | Tom Taylor <tomtaylor@google.com> | 2010-05-07 11:50:05 -0700 |
commit | b142ea00f24f4b838e6b4d0f2761eedd0f14f625 (patch) | |
tree | 1986dd141a1b46bf5c954f0b02778db7a7f9f569 | |
parent | a8c49a46af320be92f60150b4671fe3d908c8b3c (diff) | |
download | Mms-b142ea00f24f4b838e6b4d0f2761eedd0f14f625.tar.gz |
Handle anonymous senderandroid-sdk-2.2_r1
In some places (such as Korea), it's possible to receive
a message without the sender's address. In this case,
all such anonymous messages will get added to the same
thread. Bug 2665039
Change-Id: Ic6bf7a7bfadfd3162d21ef4a59788b8886679872
-rw-r--r-- | src/com/android/mms/data/Contact.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/mms/data/Contact.java b/src/com/android/mms/data/Contact.java index eb7b6ad4..b5863341 100644 --- a/src/com/android/mms/data/Contact.java +++ b/src/com/android/mms/data/Contact.java @@ -401,7 +401,10 @@ public class Contact { if (V) logWithTrace("get(%s, %s)", number, canBlock); if (TextUtils.isEmpty(number)) { - throw new IllegalArgumentException("Contact.get called with null or empty number"); + number = ""; // In some places (such as Korea), it's possible to receive + // a message without the sender's address. In this case, + // all such anonymous messages will get added to the same + // thread. } // Always return a Contact object, if if we don't have an actual contact |