Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapter.notifyItemChanged(int) causes it to crash #28

Open
mice777 opened this issue May 4, 2022 · 4 comments · Fixed by #29
Open

Adapter.notifyItemChanged(int) causes it to crash #28

mice777 opened this issue May 4, 2022 · 4 comments · Fixed by #29

Comments

@mice777
Copy link

mice777 commented May 4, 2022

    java.lang.NullPointerException
        at com.jackandphantom.carouselrecyclerview.CarouselLayoutManager.getChildActualPos(CarouselLayoutManager.kt:468)
        at com.jackandphantom.carouselrecyclerview.CarouselRecyclerview.getChildDrawingOrder(CarouselRecyclerview.kt:106)
        at android.view.ViewGroup.getAndVerifyPreorderedIndex(ViewGroup.java:1733)
        at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3510)
        at android.view.View.draw(View.java:17192)
        at androidx.recyclerview.widget.RecyclerView.draw(RecyclerView.java:4429)
        at android.view.View.updateDisplayListIfDirty(View.java:16171)
        at android.view.View.draw(View.java:16955)
...
@sparrow007
Copy link
Owner

Hi @mice777 thanks for reporting this, I will fix this issue ASAP.

@sparrow007
Copy link
Owner

@mice777 Thanks please check new version of the library for the fix

@boldijar
Copy link

@sparrow007 i also get this crash.
I use list adapter, and multiple types of recycler view items.

java.lang.NullPointerException
        at com.jackandphantom.carouselrecyclerview.CarouselLayoutManager.getChildActualPos(CarouselLayoutManager.kt:468)
        at com.jackandphantom.carouselrecyclerview.CarouselRecyclerview.getChildDrawingOrder(CarouselRecyclerview.kt:106)
        at android.view.ViewGroup.getAndVerifyPreorderedIndex(ViewGroup.java:1969)
        at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4051)

@sparrow007 sparrow007 reopened this Jun 23, 2022
@sparrow007
Copy link
Owner

Thank @boldijar for the issue, would you be able to send any sample code for the list adapter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants