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

Commit 5e13965a authored by Hans Boehm's avatar Hans Boehm
Browse files

Include more information for out-of-range DB access

Bug: 34051652
Change-Id: I8b504ad4a5b0e12b9ad4496b4a1e2a30e8017971
parent 6328e2b9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -533,7 +533,8 @@ public class ExpressionDB {
            position -= GAP;
        }
        if (position < 0) {
            throw new AssertionError("Database access out of range");
            throw new AssertionError("Database access out of range, index = " + index
                    + " rel. pos. = " + position);
        }
        if (index < 0) {
            // Avoid using mAllCursor to read data that's far away from the current position,