java.lang.ArrayIndexOutOfBoundsException: length=24; 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 liuguoquan727
, 10 months ago
length=24; index=-1
via GitHub by a7891749
, 11 months ago
length=12; index=-1
via Google Groups by porky008, 3 months ago
via GitHub by Ivolian
, 6 months ago
length=10; index=-1
via Google Groups by Sangeeta Sharma, 4 months ago
java.lang.ArrayIndexOutOfBoundsException: length=24; index=-1
at java.util.ArrayList.get(ArrayList.java:310)
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.collapse(BaseQuickAdapter.java:1272)
at com.chad.library.adapter.base.BaseQuickAdapter.collapse(BaseQuickAdapter.java:1307)
at com.chad.baserecyclerviewadapterhelper.adapter.ExpandableItemAdapter$2.onClick(ExpandableItemAdapter.java:76)
at android.view.View.performClick(View.java:5204)
at android.view.View$PerformClick.run(View.java:21153)
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:5417)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

Users with the same issue

Once, 4 months ago
3 times, 6 months ago
2 times, 10 months ago
Once, 11 months ago
2 times, 1 year ago

Write tip

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