-
Notifications
You must be signed in to change notification settings - Fork 4
Description
When scrolling the year selector all the way to the bottom (btw why is there a bottom at all, what if I want to select a date after 2036?), you get the following crash on Marshmallow:
Process: com.simplicityapks.reminderdatepicker.sample, PID: 3506
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getBottom()' on a null object reference
at com.fourmob.datetimepicker.date.YearPickerView.isAtBottom(YearPickerView.java:76)
at com.fourmob.datetimepicker.date.YearPickerView.onScroll(YearPickerView.java:152)
at android.widget.AbsListView.invokeOnItemScrollListener(AbsListView.java:1463)
at android.widget.AbsListView.trackMotionScroll(AbsListView.java:5072)
at android.widget.AbsListView$FlingRunnable.run(AbsListView.java:4601)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
at android.view.Choreographer.doCallbacks(Choreographer.java:670)
at android.view.Choreographer.doFrame(Choreographer.java:603)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
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)
It has something to do with the mMoreContentIndicator asking for the last item which is somehow null. I'll look into it some more when I get the time.