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

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=12; index=-1
at java.util.ArrayList.get(ArrayList.java:315)
at com.chad.library.adapter.base.BaseQuickAdapter.getItem(BaseQuickAdapter.java:392)
at com.chad.library.adapter.base.BaseQuickAdapter.getExpandableItem(BaseQuickAdapter.java:1324)
at com.chad.library.adapter.base.BaseQuickAdapter.expand(BaseQuickAdapter.java:1139)
at com.chad.library.adapter.base.BaseQuickAdapter.expand(BaseQuickAdapter.java:1176)
at com.chad.baserecyclerviewadapterhelper.adapter.ExpandableItemAdapter$2.onClick(ExpandableItemAdapter.java:90)
at android.view.View.performClick(View.java:5317)
at android.view.View$PerformClick.run(View.java:21648)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5925)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:956)

Users with the same issue

3 times, 4 months ago
6 times, 8 months ago
2 times, 9 months ago
2 times, 11 months ago
40 times, 1 year ago

Write tip

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