-
Notifications
You must be signed in to change notification settings - Fork 39
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
Logcat crash error xml #18
Comments
Would you please add your implementation? |
I have the same issue. I think this is error from library kotlin.TypeCastException: null cannot be cast to non-null type alirezat775.lib.carouselview.CarouselLayoutManager this is my xml implementation on fragment
|
you need to set variable manager : CarouselLayoutManager? as nullable |
Hi @BayuWijayaPermanaPutra, thanks for asking, however, I couldn’t get your problem, may I ask you to add your implementation and explain the scenario that caused this problem? |
Process: grand.app.elqasar, PID: 26848
kotlin.TypeCastException: null cannot be cast to non-null type alirezat775.lib.carouselview.CarouselLayoutManager
at alirezat775.lib.carouselview.CarouselView.getManager(CarouselView.kt:77)
at alirezat775.lib.carouselview.CarouselView.getParentAnchor(CarouselView.kt:250)
at alirezat775.lib.carouselview.CarouselView.calculateSnapViewPosition(CarouselView.kt:265)
at alirezat775.lib.carouselview.CarouselView.scrolling(CarouselView.kt:230)
at alirezat775.lib.carouselview.CarouselView$initSnap$1.run(CarouselView.kt:101)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:234)
at android.app.ActivityThread.main(ActivityThread.java:5526)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
The text was updated successfully, but these errors were encountered: