summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-11-01 14:07:11 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-11-01 14:07:11 -0700
commit6c97009c9fe8ea610717afb93ca2fafaff0bc261 (patch)
tree9d66b4d1f7ff3a912b4ae43bf50f77e6181d01a6 /src
parent309e27d211972ba968179083695cf0d9be747dee (diff)
parentb911519f9f37c89b12333bd1c00752561e34fa93 (diff)
am b911519f: am 16016d95: Add null check in SmartDialCursorLoader.releaseResources
* commit 'b911519f9f37c89b12333bd1c00752561e34fa93': Add null check in SmartDialCursorLoader.releaseResources
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/dialpad/SmartDialCursorLoader.java4
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();
+ }
}
}