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

Commit 4565d52b authored by Dmitri Plotnikov's avatar Dmitri Plotnikov
Browse files

Fixing NPE in CursorLoader

Change-Id: I8d005473166f43dd018ac304ff9ec606e90483a3
parent 0761cea3
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;