manas-chaudhari / android-mvvm

MVVM on Android using RxJava and Data Binding

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exception raised when View is recycled in a RecyclerView

sander48k opened this issue · comments

It seems that when a View is recycled in a RecyclerView, the view model of that view is set to null (in onViewRecycled of RecyclerViewAdapter.java). Subsequently the pending bindings are executed resulting in a crash.

Can you share an example of Binding that crashes?
BindingAdapters are expected to be able to handle null values.