manas-chaudhari/android-mvvm

Exception raised when View is recycled in a RecyclerView

sander48k opened this issue · 1 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.