diff options
-rw-r--r-- | src/com/android/dialer/dialpad/SmartDialCursorLoader.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/dialer/dialpad/SmartDialCursorLoader.java b/src/com/android/dialer/dialpad/SmartDialCursorLoader.java index a13ecd8da..369079618 100644 --- a/src/com/android/dialer/dialpad/SmartDialCursorLoader.java +++ b/src/com/android/dialer/dialpad/SmartDialCursorLoader.java @@ -162,6 +162,8 @@ public class SmartDialCursorLoader extends AsyncTaskLoader<Cursor> { } private void releaseResources(Cursor cursor) { - cursor.close(); + if (cursor != null) { + cursor.close(); + } } } |