(Solved) Change Adapter from other Class (null errors)

Iā€™m glad you found a solution. :slight_smile:

Hello everyone,
I also came across similar problem and came to an empirical observation that any method of adapter (class that extends RecyclerView.Adapter) cannot be accessed outside the class (Not sure why this is happening) and hence I too need to pass the data in the constructor itself.
Can someone throw any light on this?

write your adapter binding code inside viewCreated in fragment.

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
----
}