android-mvvm
android-mvvm copied to clipboard
Exception raised when View is recycled in a RecyclerView
trafficstars
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.