diff options
author | Tom Taylor <tomtaylor@google.com> | 2010-05-10 09:43:17 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-05-10 09:43:17 -0700 |
commit | 5857c040d95e13a260cb19df1454c4f02681e730 (patch) | |
tree | 7718936f746d59ee7d632ed8e7dbe2fd2c1a9ed2 | |
parent | 82d2b433ed97042e131d362ed2252d6b8a5dea1f (diff) | |
parent | b142ea00f24f4b838e6b4d0f2761eedd0f14f625 (diff) | |
download | Mms-5857c040d95e13a260cb19df1454c4f02681e730.tar.gz |
am b142ea00: Handle anonymous sender
Merge commit 'b142ea00f24f4b838e6b4d0f2761eedd0f14f625' into froyo-plus-aosp
* commit 'b142ea00f24f4b838e6b4d0f2761eedd0f14f625':
Handle anonymous sender
-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 |