drakeet / MultiType

Flexible multiple types for Android RecyclerView.
Apache License 2.0
5.76k stars 751 forks source link

java.lang.ArrayIndexOutOfBoundsException 【3.4.4】【偶现】 #266

Closed pys200603027 closed 5 years ago

pys200603027 commented 5 years ago

What kind of issue is this?

Info:
Description:
java.lang.ArrayIndexOutOfBoundsException
java.util.ArrayList.get(ArrayList.java:439)
me.drakeet.multitype.MultiTypePool.getItemViewBinder(MultiTypePool.java:143)
me.drakeet.multitype.MultiTypeAdapter.getRawBinderByViewHolder(MultiTypeAdapter.java:334)
me.drakeet.multitype.MultiTypeAdapter.onViewDetachedFromWindow(MultiTypeAdapter.java:329)
Reproduction Steps:
My thoughts:
What did I do:
drakeet commented 5 years ago

你的 views 和 items 没有实时同步,可能你并发或异步修改了 items 导致。这不属于 MultiType 的问题,换句话说,你使用原生 RecyclerView Adapter 同样会遇到这个问题。而且由于你提供的描述和信息都非常有限,无法解决和得到准确结论。

drakeet commented 5 years ago

如果你需要进一步帮忙,你需要提供最小体积可直接编译运行的可复现工程。

pys200603027 commented 5 years ago

好的,感谢作者,我这边持续关注下