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

Solutions on the web

via Kuali JIRA by Mindi Balmer, 1 year ago
-1
via Kuali JIRA by Mindi Balmer, 1 year ago
-1
java.lang.ArrayIndexOutOfBoundsException: length=0; index=-1
at java.util.ArrayList.get(ArrayList.java:310)
at org.wordpress.android.ui.menus.items.TagItemEditor.fillData(TagItemEditor.java:218)
at org.wordpress.android.ui.menus.items.TagItemEditor.getMenuItem(TagItemEditor.java:112)
at org.wordpress.android.ui.menus.EditMenuItemDialog.onMenuItemClick(EditMenuItemDialog.java:131)
at android.support.v7.widget.Toolbar$1.onMenuItemClick(Toolbar.java:202)
at android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:810)
at android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:957)
at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:947)
at android.support.v7.view.menu.MenuPopup.onItemClick(MenuPopup.java:126)
at android.widget.AdapterView.performItemClick(AdapterView.java:305)
at android.widget.AbsListView.performItemClick(AbsListView.java:1146)
at android.widget.AbsListView$PerformClick.run(AbsListView.java:3053)
at android.widget.AbsListView$3.run(AbsListView.java:3860)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)

Users with the same issue

Once, 10 months ago
148 times, 11 months ago
Once, 1 year ago
10 times, 1 year ago
Once, 3 months ago
42 more bugmates

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