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

Commit 490cf9c1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

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

Merge "SQLiteCursor must be closed before throwing exception" into rvc-dev am: 2d3f5ecd am: 826e63f4

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/11983925

Change-Id: I75db1c3f51c42299f9997acf03f5092c1a48c719
parents 5784bbd8 826e63f4
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);
        }