-
Notifications
You must be signed in to change notification settings - Fork 187
Null object reference SectioningAdapter.getItemViewType(int) #18
Comments
and my SectioningAdapter.java
|
I have the same error <
</android.support.v4.widget.DrawerLayout> |
Hi guys, I'm having this issue as well and I am pretty sure I got the code sample correct. Can someone provide a clear way to resolve this? |
Can you make me a simple project that reproduces the bug? It would help. |
I'm having the same issue. When I set the adapter inside a Retrofit callback, it shows the same error. When I set the adapter with manual data in the OnCreate method of the activity or fragment, it works fine. |
@ShamylZakariya please fix this issue |
@juangranadilla that was the information I needed to understand what's been going on. Thanks! The issue is a scenario where the StickyHeaderLayoutManager is assigned to the RecyclerView, but the SectioningAdapter isn't assigned until later in the lifecycle of the recyclerview. I've created a test which reproduces the bug, and worked out a fix. Will be posting update pronto. |
OK everybody, please give a shot with release 0.7.5 - let me know if it fixes (or doesn't fix) your crashes. |
Hi guys, i am using your lib for my project, it worked very cool with header created. so i have a problem header when scrolling. It have not sticked at the top as same your demo showed. And i have found that the different your view is AppCompatActivity and mine is fragment. I have searched everywhere on google then i can not fix it. Can you review this problem. Thank you so much |
Hi , i am using your lib to sticky header , i have an Tab layout with 2 fragments and when i try to get data from database in background and try to set adpater in the fragment onCreateView() method , i am getting
java.lang.NullPointerException: Attempt to invoke virtual method 'int org.zakariya.stickyheaders.SectioningAdapter.getItemViewType(int)' on a null object reference
in my fragment
The text was updated successfully, but these errors were encountered: