IndexOutOfBoundsException when RecyclerView data set changes
Closed this issue · 0 comments
Aidanvii7 commented
07-27 11:46:42.636 16225-16225/com.pixellot.player.wige E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.pixellot.player.wige, PID: 16225
java.lang.IndexOutOfBoundsException: Index: 8, Size: 8
at java.util.ArrayList.get(ArrayList.java:437)
at com.aidanvii.toolbox.adapterviews.databinding.BindableAdapter$DefaultImpls.getItem(BindableAdapter.kt:46)
at com.aidanvii.toolbox.adapterviews.recyclerview.BindingRecyclerViewAdapter.getItem(BindingRecyclerViewAdapter.kt:94)
at com.aidanvii.toolbox.adapterviews.recyclerview.BindableAdapterItemDataObserver.bindRange(BindableAdapterItemDataObserver.kt:34)
at com.aidanvii.toolbox.adapterviews.recyclerview.BindableAdapterItemDataObserver.onItemRangeInserted(BindableAdapterItemDataObserver.kt:20)
at android.support.v7.widget.RecyclerView$AdapterDataObservable.notifyItemRangeInserted(RecyclerView.java:11810)
at android.support.v7.widget.RecyclerView$Adapter.notifyItemRangeInserted(RecyclerView.java:7105)
at android.support.v7.util.AdapterListUpdateCallback.onInserted(AdapterListUpdateCallback.java:43)
at android.support.v7.util.BatchingListUpdateCallback.dispatchLastEvent(BatchingListUpdateCallback.java:59)
at android.support.v7.util.BatchingListUpdateCallback.onRemoved(BatchingListUpdateCallback.java:94)
at android.support.v7.util.DiffUtil$DiffResult.dispatchRemovals(DiffUtil.java:850)
at android.support.v7.util.DiffUtil$DiffResult.dispatchUpdatesTo(DiffUtil.java:765)
at android.support.v7.util.DiffUtil$DiffResult.dispatchUpdatesTo(DiffUtil.java:731)
at com.aidanvii.toolbox.adapterviews.recyclerview.BindingRecyclerViewAdapter$items$1.doResume(BindingRecyclerViewAdapter.kt:72)
at kotlin.coroutines.experimental.jvm.internal.CoroutineImpl.resume(CoroutineImpl.kt:42)
at kotlin.coroutines.experimental.jvm.internal.CoroutineImpl.resume(CoroutineImpl.kt:41)
at kotlinx.coroutines.experimental.DispatchedTask$DefaultImpls.run(Dispatched.kt:162)
at kotlinx.coroutines.experimental.AbstractContinuation.run(AbstractContinuation.kt:31)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6592)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:769)