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

Commit 2d3f5ecd authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "SQLiteCursor must be closed before throwing exception" into rvc-dev

parents 6f4aa6e5 3c782f76
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -127,10 +127,12 @@ public class SlicesDatabaseAccessor {
        int numResults = resultCursor.getCount();

        if (numResults == 0) {
            resultCursor.close();
            throw new IllegalStateException("Invalid Slices key from path: " + path);
        }

        if (numResults > 1) {
            resultCursor.close();
            throw new IllegalStateException(
                    "Should not match more than 1 slice with path: " + path);
        }