diff options
author | Hans Boehm <hboehm@google.com> | 2017-01-03 14:10:17 -0800 |
---|---|---|
committer | Hans Boehm <hboehm@google.com> | 2017-01-03 14:10:17 -0800 |
commit | 5e13965a22ea40478e214a7865c1cbfbdf1e9b09 (patch) | |
tree | 2cd2645a5e72ae2781402a5ae74c16b83312e24a | |
parent | 6328e2b9a873222b3b285018720d4d03ade755c2 (diff) | |
download | android_packages_apps_ExactCalculator-5e13965a22ea40478e214a7865c1cbfbdf1e9b09.tar.gz android_packages_apps_ExactCalculator-5e13965a22ea40478e214a7865c1cbfbdf1e9b09.tar.bz2 android_packages_apps_ExactCalculator-5e13965a22ea40478e214a7865c1cbfbdf1e9b09.zip |
Include more information for out-of-range DB access
Bug: 34051652
Change-Id: I8b504ad4a5b0e12b9ad4496b4a1e2a30e8017971
-rw-r--r-- | src/com/android/calculator2/ExpressionDB.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/calculator2/ExpressionDB.java b/src/com/android/calculator2/ExpressionDB.java index 47d6813..fb7ee04 100644 --- a/src/com/android/calculator2/ExpressionDB.java +++ b/src/com/android/calculator2/ExpressionDB.java @@ -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, |