diff options
author | Ficus Kirkpatrick <> | 2009-03-24 21:21:18 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-24 21:21:18 -0700 |
commit | b3f4db8e2b0a7c5913ee7bf4bef351076b00a52d (patch) | |
tree | 0fce219dc05aebae4b5e9803e54ddf7c22e7e448 /core | |
parent | bd8989394247bdff7c2d45f81c3420e4eae44684 (diff) | |
download | frameworks_base-b3f4db8e2b0a7c5913ee7bf4bef351076b00a52d.zip frameworks_base-b3f4db8e2b0a7c5913ee7bf4bef351076b00a52d.tar.gz frameworks_base-b3f4db8e2b0a7c5913ee7bf4bef351076b00a52d.tar.bz2 |
Automated import from //branches/master/...@141998,141998
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/provider/Telephony.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/java/android/provider/Telephony.java b/core/java/android/provider/Telephony.java index c8f8b40..61ab228 100644 --- a/core/java/android/provider/Telephony.java +++ b/core/java/android/provider/Telephony.java @@ -30,6 +30,7 @@ import android.telephony.gsm.SmsMessage; import android.text.TextUtils; import android.text.util.Regex; import android.util.Config; +import android.util.Log; import java.util.HashSet; import java.util.Set; @@ -1103,18 +1104,22 @@ public final class Telephony { uriBuilder.appendQueryParameter("recipient", recipient); } + Uri uri = uriBuilder.build(); Cursor cursor = SqliteWrapper.query(context, context.getContentResolver(), - uriBuilder.build(), ID_PROJECTION, null, null, null); + uri, ID_PROJECTION, null, null, null); if (cursor != null) { try { if (cursor.moveToFirst()) { return cursor.getLong(0); + } else { + Log.e(TAG, "getOrCreateThreadId returned no rows!"); } } finally { cursor.close(); } } + Log.e(TAG, "getOrCreateThreadId failed with uri " + uri.toString()); throw new IllegalArgumentException("Unable to find or allocate a thread ID."); } } |