summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-11-01 14:04:53 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-11-01 14:04:53 -0700
commitb911519f9f37c89b12333bd1c00752561e34fa93 (patch)
treec1dfd6427ca2336871b3a69108e8836fa4e4e140
parentf625246b6d08d516d4b923ecb005ddf2e9d232c8 (diff)
parent16016d955feec1482da23291ea0f21de1ad6459e (diff)
am 16016d95: Add null check in SmartDialCursorLoader.releaseResources
* commit '16016d955feec1482da23291ea0f21de1ad6459e': Add null check in SmartDialCursorLoader.releaseResources
-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();
+ }
}
}