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

Commit 16016d95 authored by Yorke Lee's avatar Yorke Lee
Browse files

Add null check in SmartDialCursorLoader.releaseResources

Bug: 11474252
Change-Id: Id5a64aa72790bddef9e8fd2d4661635bd2eb6f44
parent fcc395b3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -162,6 +162,8 @@ public class SmartDialCursorLoader extends AsyncTaskLoader<Cursor> {
    }

    private void releaseResources(Cursor cursor) {
        if (cursor != null) {
            cursor.close();
        }
    }
}