summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJay Shrauner <shrauner@google.com>2014-03-03 22:23:02 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-03-03 22:23:03 +0000
commit243ab2f22eb25fd35a936e8a62808cad935bb510 (patch)
tree1ec1c140b1b0cc69b268f92d61eb6e739dd0f1e0 /src
parent906befb10305b4102e457c5e72ce76067f1d0438 (diff)
parenta4a3714176499f00330baf69f78d51901c633eca (diff)
Merge "Add null check for cursor in UndemoteOutgoingCallReceiver" into klp-dev
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/interactions/UndemoteOutgoingCallReceiver.java3
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);