java.lang.ArrayIndexOutOfBoundsException: length=12; index=-2

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=-2
at java.util.ArrayList.get(ArrayList.java:310)
at com.google.android.exoplayer.hls.HlsChunkSource.getChunkOperation(HlsChunkSource.java:441)
at com.google.android.exoplayer.hls.HlsSampleSource.maybeStartLoading(HlsSampleSource.java:712)
at com.google.android.exoplayer.hls.HlsSampleSource.onLoadCompleted(HlsSampleSource.java:438)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.os.HandlerThread.run(HandlerThread.java:61)

Users with the same issue

Once, 3 months ago
3 times, 5 months ago
2 times, 9 months ago
Once, 11 months ago
2 times, 11 months ago

Write tip

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