Closed abutygin closed 9 years ago
It may occur on app screens with RecyclerView. In ViewFetcher.addChildren method viewGroup.getChildAt(i) can return null. So lines:
else if(!onlySufficientlyVisible) views.add(child);
should be replaced by
else if(!onlySufficientlyVisible && child != null) views.add(child);
or check child after viewGroup.getChildAt(i) :
final View child = viewGroup.getChildAt(i); if (child == null) continue;
Thanks for reporting this. We'll make a new release shortly and will include this fix in it.
Fixed in 5.5.2.
Thanks a lot!
It may occur on app screens with RecyclerView. In ViewFetcher.addChildren method viewGroup.getChildAt(i) can return null. So lines:
should be replaced by
or check child after viewGroup.getChildAt(i) :