diff options
author | Yorke Lee <yorkelee@google.com> | 2013-12-17 18:18:49 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-12-17 18:18:50 +0000 |
commit | 7983206661f065342767bb4141d7a924323b2933 (patch) | |
tree | 44fe69ea57758d8e336105fe2904584a9047d5b1 /src | |
parent | 80d78a876463fcdadb1f5cbd69073f9129577117 (diff) | |
parent | 3fee3e5a6ac02e4ddc536e4739d336341d22e19a (diff) |
Merge "Add null check for cursor in UndemoteOutgoingCallReceiver"
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/interactions/UndemoteOutgoingCallReceiver.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/dialer/interactions/UndemoteOutgoingCallReceiver.java b/src/com/android/dialer/interactions/UndemoteOutgoingCallReceiver.java index fb9b1d1aa..c7e4c5f89 100644 --- a/src/com/android/dialer/interactions/UndemoteOutgoingCallReceiver.java +++ b/src/com/android/dialer/interactions/UndemoteOutgoingCallReceiver.java @@ -68,6 +68,9 @@ public class UndemoteOutgoingCallReceiver extends BroadcastReceiver { Uri.encode(number)); final Cursor cursor = context.getContentResolver().query(contactUri, new String[] { PhoneLookup._ID}, null, null, null); + if (cursor == null) { + return NO_CONTACT_FOUND; + } try { if (cursor.moveToFirst()) { final long id = cursor.getLong(0); |