Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7bff792a authored by Jay Shrauner's avatar Jay Shrauner Committed by Android Git Automerger
Browse files

am c0078359: am fe7a8f0e: am 243ab2f2: Merge "Add null check for cursor in...

am c0078359: am fe7a8f0e: am 243ab2f2: Merge "Add null check for cursor in UndemoteOutgoingCallReceiver" into klp-dev

* commit 'c0078359':
  Add null check for cursor in UndemoteOutgoingCallReceiver
parents 66255974 c0078359
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);