Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 90c50c4d authored by Dmitri Plotnikov's avatar Dmitri Plotnikov Committed by Android (Google) Code Review
Browse files

Merge "Fixing NPE in CursorLoader"

parents 6ea3b2a5 4565d52b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -50,7 +50,9 @@ public class CursorLoader extends AsyncTaskLoader<Cursor> {
    public void deliverResult(Cursor cursor) {
        if (mStopped) {
            // An async query came in while the loader is stopped
            if (cursor != null) {
                cursor.close();
            }
            return;
        }
        mCursor = cursor;