https://kotlinlang.org logo
Title
p

Pardeep Sharma

03/17/2023, 4:32 PM
I am trying to populate a list inside ViewPager2 Tab item. The first Tab item loading fine, but when trying to switch to second Tab item it throws as error: Process: com.example.genericandroid PID: 10569 java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View androidx.databinding.ViewDataBinding.getRoot()' on a null object reference at com.example.adapter.MyListAdapter.onCreateViewHolder(MyListAdapter.kt:36) I am using data binding with ListView. Any suggestion please?
c

Chrimaeon

03/17/2023, 4:35 PM
This is a workspace for the Kotlin programming language. Your general android question should be ask somewhere else. Please check the channel topic for more appropriate places.
p

Pardeep Sharma

03/17/2023, 4:39 PM
@Chrimaeon Please suggest a channel to post this question, I tried stackoverflow but no luck :(
c

Chrimaeon

03/17/2023, 4:39 PM
Here is no channel. Check the channel description. There are links to discord and so on.