ShamylZakariya / StickyHeaders

Adapter and LayoutManager for Android RecyclerView which enables sticky header positioning.
MIT License
1.4k stars 185 forks source link

App Crashing If the List size is 0. #111

Open NandagopalR opened 4 years ago

NandagopalR commented 4 years ago

Actually, In onCreate, i'm using StickyHeaderLayoutManager as a layout manager and i'm passing the size of my list is 0 at initial stage. Once i got the data from the api, i'll notify the adapter. The thing is, when i'm passing the list size as 0, the adapter sending IndexOutOfBoundException ItemCount is -1.

DevAnuragGarg commented 4 years ago

The same has been happening

SuperKung commented 2 years ago

change the version to 0.7.11