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 es.ugr.swad.swadroid.modules.notifications.NotificationsExpandableListAdapter.getChildId(NotificationsExpandableListAdapter.java:84)
at es.ugr.swad.swadroid.modules.notifications.Notifications$2.onSwipeLeft(Notifications.java:620)
at es.ugr.swad.swadroid.gui.SwipeListViewTouchListener$4.onAnimationEnd(SwipeListViewTouchListener.java:384)
at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1056)
at android.animation.ValueAnimator.access$400(ValueAnimator.java:50)
at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:644)
at android.animation.ValueAnimator$AnimationHandler.run(ValueAnimator.java:660)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
at android.view.Choreographer.doCallbacks(Choreographer.java:574)
at android.view.Choreographer.doFrame(Choreographer.java:543)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5072)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:780)

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.