diff options
author | Yorke Lee <yorkelee@google.com> | 2013-11-01 09:31:26 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2013-11-01 09:31:26 -0700 |
commit | 16016d955feec1482da23291ea0f21de1ad6459e (patch) | |
tree | f12a1960a3abe41ce04b65a9aaa7690e879dde81 /src | |
parent | fcc395b3760d10e859b23c81328c0221e167a63c (diff) |
Add null check in SmartDialCursorLoader.releaseResources
Bug: 11474252
Change-Id: Id5a64aa72790bddef9e8fd2d4661635bd2eb6f44
Diffstat (limited to 'src')
-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(); + } } } |