bgogetap / StickyHeaders

Easily add Sticky Headers to your RecyclerView
Apache License 2.0
521 stars 88 forks source link

NPE on StickyHeaderPositioner.getHeaderPositionToShow() #89

Open zecweb opened 5 years ago

zecweb commented 5 years ago

Fatal Exception: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference at com.brandongogetap.stickyheaders.StickyHeaderPositioner.getHeaderPositionToShow(StickyHeaderPositioner.java:192) at com.brandongogetap.stickyheaders.StickyHeaderPositioner.updateHeaderState(StickyHeaderPositioner.java:60) at com.brandongogetap.stickyheaders.StickyLayoutManager.scrollVerticallyBy(StickyLayoutManager.java:95) at androidx.recyclerview.widget.RecyclerView.scrollStep(RecyclerView.java:1832) at androidx.recyclerview.widget.RecyclerView.scrollByInternal(RecyclerView.java:1927) at androidx.recyclerview.widget.RecyclerView.onTouchEvent(RecyclerView.java:3187) at android.view.View.dispatchTouchEvent(View.java:10098)

bgogetap commented 5 years ago

Thanks for reporting. Do you have steps to reproduce this?

zecweb commented 5 years ago

I can't reproduce it. I'm seeing this from crashlytics.