diff options
author | Jay Shrauner <shrauner@google.com> | 2013-12-20 11:28:25 -0800 |
---|---|---|
committer | Jay Shrauner <shrauner@google.com> | 2014-01-09 14:40:50 -0800 |
commit | 070d7d0fae86d7498a25ccefdc78ac0d81c19d8e (patch) | |
tree | 0ec925a6817db3aef7844ff68743da2a7d0dd9e3 | |
parent | bdd1574d26ba85e4be1e0ef8a099da5f7fe86b11 (diff) |
Fix NPE in deleted contact removal
Fix NPE in deleted contact removal.
Bug:12475233
Change-Id: I7f7a2c78e62e838728868063b0f76e6bffba2130
-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 { |