I am trying to use a static class to pass value to a view instead of using intent as I have to pass a large amount of data. Sometimes I get this error and couldn\'t find out wha
It may because you first setAdapter() and notifyDataSetChanged in method initUI();
setAdapter()
notifyDataSetChanged
initUI()
Then, you instantiate the List> data in method initData(), the two methods in different lifetime of fragment.
List>
initData()
It's the problem about fragment's lifecycle