net.sqlcipher.CursorIndexOutOfBoundsException: Index 2 requested, with a size of 2

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

net.sqlcipher.CursorIndexOutOfBoundsException: Index 2 requested, with a size of 2
at net.sqlcipher.AbstractCursor.checkPosition(AbstractCursor.java:556)
at net.sqlcipher.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:222)
at net.sqlcipher.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:43)
at android.database.CursorWrapper.getString(CursorWrapper.java:137)
at android.database.CursorWrapper.getString(CursorWrapper.java:137)
at android.support.test.espresso.matcher.CursorMatchers$7.apply(CursorMatchers.java:245)
at android.support.test.espresso.matcher.CursorMatchers$CursorMatcher.matchesSafely(CursorMatchers.java:113)
at android.support.test.espresso.matcher.CursorMatchers$CursorMatcher.matchesSafely(CursorMatchers.java:61)
at android.support.test.espresso.matcher.BoundedMatcher.matches(BoundedMatcher.java:73)
at org.hamcrest.core.AllOf.matches(AllOf.java:27)
at org.hamcrest.DiagnosingMatcher.matches(DiagnosingMatcher.java:12)
at android.support.test.espresso.action.AdapterDataLoaderAction.perform(AdapterDataLoaderAction.java:83)
at android.support.test.espresso.ViewInteraction$1.run(ViewInteraction.java:144)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.Handler.handleCallback(Handler.java:746)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5459)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.