From 070d7d0fae86d7498a25ccefdc78ac0d81c19d8e Mon Sep 17 00:00:00 2001 From: Jay Shrauner Date: Fri, 20 Dec 2013 11:28:25 -0800 Subject: Fix NPE in deleted contact removal Fix NPE in deleted contact removal. Bug:12475233 Change-Id: I7f7a2c78e62e838728868063b0f76e6bffba2130 --- src/com/android/dialer/database/DialerDatabaseHelper.java | 3 +++ 1 file changed, 3 insertions(+) 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 { -- cgit v1.2.3