Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

java.lang.ArithmeticException when selecting date beyond date that stated in maxDateRange() #155

Closed
anuress opened this issue Aug 2, 2018 · 1 comment

Comments

@anuress
Copy link
Contributor

anuress commented Aug 2, 2018

I got ArithmeticException in DoubleDateAndTimePickerDialog when selecting date beyond date that stated in maxDateRange()

java.lang.ArithmeticException: divide by zero
at com.github.florent37.singledateandtimepicker.widget.WheelPicker$Adapter.getItem(WheelPicker.java:1072)
at com.github.florent37.singledateandtimepicker.widget.WheelPicker.onItemSelected(WheelPicker.java:626)
at com.github.florent37.singledateandtimepicker.widget.WheelPicker.access$600(WheelPicker.java:35)
at com.github.florent37.singledateandtimepicker.widget.WheelPicker$3.onAnimationEnd(WheelPicker.java:617)
at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1171)
at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:722)
at android.animation.ValueAnimator$AnimationHandler.run(ValueAnimator.java:738)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
at android.view.Choreographer.doCallbacks(Choreographer.java:580)
at android.view.Choreographer.doFrame(Choreographer.java:549)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

@anuress anuress closed this as completed Aug 2, 2018
@anuress anuress reopened this Aug 2, 2018
@anuress
Copy link
Contributor Author

anuress commented Aug 2, 2018

similar with #148

@anuress anuress closed this as completed Aug 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant