I am using the android tv leanback sample here, https://github.com/googlesamples/androidtv-Leanback
when I try to replace fragment in MainFragment
like this
getFragmentManager().beginTransaction().replace(R.id.main_frame, SampleFragment)
.addToBackStack(null).commit();
it crash with
android.support.v7.widget.RecyclerView$ViewHolder.shouldIgnore()’ on a null object reference at android.support.v7.widget.RecyclerView.findMinMaxChildLayoutPositions(RecyclerView.java:3989)
and it happens even I replace with a blank fragment