diff options
author | Yorke Lee <yorkelee@google.com> | 2013-11-01 14:04:53 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-11-01 14:04:53 -0700 |
commit | b911519f9f37c89b12333bd1c00752561e34fa93 (patch) | |
tree | c1dfd6427ca2336871b3a69108e8836fa4e4e140 | |
parent | f625246b6d08d516d4b923ecb005ddf2e9d232c8 (diff) | |
parent | 16016d955feec1482da23291ea0f21de1ad6459e (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.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(); + } } } |