diff options
-rw-r--r-- | src/com/android/dialer/database/DialerDatabaseHelper.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/dialer/database/DialerDatabaseHelper.java b/src/com/android/dialer/database/DialerDatabaseHelper.java index 646104b8b..5bfe11aa4 100644 --- a/src/com/android/dialer/database/DialerDatabaseHelper.java +++ b/src/com/android/dialer/database/DialerDatabaseHelper.java @@ -511,6 +511,9 @@ public class DialerDatabaseHelper extends SQLiteOpenHelper { DeleteContactQuery.PROJECTION, DeleteContactQuery.SELECT_UPDATED_CLAUSE, new String[] {last_update_time}, null); + if (deletedContactCursor == null) { + return; + } db.beginTransaction(); try { |