jmartinesp / SpannedGridLayoutManager

Android RecyclerView.LayoutManager that resizes and reorders views based on SpanSize
MIT License
600 stars 105 forks source link

Kotlin null pointer exception #12

Closed murzagalin closed 6 years ago

murzagalin commented 6 years ago

Hello! I really like this layout manager.

But there is a fatal exception that we found

Exception kotlin.KotlinNullPointerException: com.arasthel.spannedgridlayoutmanager.SpannedGridLayoutManager.getDecoratedTop (SpannedGridLayoutManager.kt:637) android.support.v7.widget.LinearSmoothScroller.calculateDyToMakeVisible (LinearSmoothScroller.java:308) android.support.v7.widget.LinearSmoothScroller.onTargetFound (LinearSmoothScroller.java:113) android.support.v7.widget.RecyclerView$SmoothScroller.onAnimation (RecyclerView.java:11242) android.support.v7.widget.RecyclerView$SmoothScroller.access$600 (RecyclerView.java:11122) android.support.v7.widget.RecyclerView$ViewFlinger.run (RecyclerView.java:4949) android.view.Choreographer$CallbackRecord.run (Choreographer.java:858) android.view.Choreographer.doCallbacks (Choreographer.java:670) android.view.Choreographer.doFrame (Choreographer.java:603) android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:844) android.os.Handler.handleCallback (Handler.java:739) android.os.Handler.dispatchMessage (Handler.java:95) android.os.Looper.loop (Looper.java:234) android.app.ActivityThread.main (ActivityThread.java:5526) java.lang.reflect.Method.invoke (Method.java) com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:726) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:616)

murzagalin commented 6 years ago

Dont know the way to reproduce it. But it happened 4 times in samsung s7