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

Commit 8fea5708 authored by Automerger Merge Worker's avatar Automerger Merge Worker Committed by Android (Google) Code Review
Browse files

Merge "Merge "SQLiteCursor must be closed before throwing exception" into...

Merge "Merge "SQLiteCursor must be closed before throwing exception" into rvc-dev am: 2d3f5ecd am: 826e63f4" into rvc-d1-dev-plus-aosp
parents a12e4794 2b1fd1fe
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);
        }