java.lang.ArrayIndexOutOfBoundsException: length=0; index=-1

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.
java.lang.ArrayIndexOutOfBoundsException: length=0; index=-1
at java.util.ArrayList.get(ArrayList.java:310)
at com.mishiranu.dashchan.widget.CommentTextView$CustomSelectionCallback.onCreateActionMode(CommentTextView.java:385)
at android.widget.Editor.startSelectionActionModeInternal(Editor.java:1759)
at android.widget.Editor.startSelectionActionMode(Editor.java:1712)
at android.widget.Editor$SelectionModifierCursorController.onTouchEvent(Editor.java:5404)
at android.widget.Editor.onTouchEvent(Editor.java:1198)
at android.widget.TextView.onTouchEvent(TextView.java:8309)
at com.mishiranu.dashchan.widget.CommentTextView.onTouchEvent(CommentTextView.java:623)
at com.mishiranu.dashchan.widget.CommentTextView.sendFakeMotionEvent(CommentTextView.java:252)
at com.mishiranu.dashchan.widget.CommentTextView.startSelection(CommentTextView.java:306)
at com.mishiranu.dashchan.widget.CommentTextView.startSelection(CommentTextView.java:319)
at com.mishiranu.dashchan.ui.navigator.manager.ViewUnit.handlePostForDoubleClick(ViewUnit.java:984)
at com.mishiranu.dashchan.ui.navigator.manager.InteractionUnit.handlePostClick(InteractionUnit.java:359)
at com.mishiranu.dashchan.ui.navigator.page.PostsPage.onItemClick(PostsPage.java:274)
at com.mishiranu.dashchan.ui.navigator.NavigatorActivity.onItemClick(NavigatorActivity.java:690)
at android.widget.AdapterView.performItemClick(AdapterView.java:310)
at android.widget.AbsListView.performItemClick(AbsListView.java:1145)
at android.widget.AbsListView$PerformClick.run(AbsListView.java:3081)
at android.widget.AbsListView$3.run(AbsListView.java:3947)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5441)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)

Users with the same issue

Once, 11 months ago
148 times, 11 months ago
Once, 1 year ago
10 times, 1 year ago
Once, 3 months ago

Write tip

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