android-mvvm icon indicating copy to clipboard operation
android-mvvm copied to clipboard

Exception raised when View is recycled in a RecyclerView

Open sander48k opened this issue 6 years ago • 1 comments
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.

sander48k avatar Jan 30 '19 14:01 sander48k

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

manas-chaudhari avatar Jan 30 '19 18:01 manas-chaudhari