java.lang.ArrayIndexOutOfBoundsException: length=12; 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 GitHub by feiyangwei
, 1 year ago
length=12; index=-1
via GitHub by ivashov
, 2 years ago
length=12; index=-1
java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1
at java.util.ArrayList.get(ArrayList.java:310)
at org.wordpress.android.ui.main.SitePickerAdapter.getItem(SitePickerAdapter.java:127)
at org.wordpress.android.ui.main.SitePickerAdapter.access$300(SitePickerAdapter.java:32)
at org.wordpress.android.ui.main.SitePickerAdapter$SiteViewHolder$1.onClick(SitePickerAdapter.java:89)
at android.view.View.performClick(View.java:5197)
at android.view.View$PerformClick.run(View.java:20926)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5951)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)

Users with the same issue

Once, 5 months ago
3 times, 7 months ago
2 times, 11 months ago
Once, 1 year ago
2 times, 1 year ago

Write tip

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