huanghaibin-dev / CalendarView

Android上一个优雅、万能自定义UI、仿iOS、自定义动画,支持垂直、水平方向切换、支持周视图、自定义周起始、性能高效的日历控件,支持热插拔实现的UI定制!支持标记、自定义颜色、农历、自定义月视图各种显示模式等。Canvas绘制,速度快、占用内存低,你真的想不到日历居然还可以如此优雅!An elegant, highly customized and high-performance Calendar Widget on Android.
Apache License 2.0
9.16k stars 1.8k forks source link

Monkey 测试报 ArithmeticException 错误 #419

Closed Weiyi-C closed 5 years ago

Weiyi-C commented 5 years ago

在云测中进行Monkey测试,执行了88款机型,11个机型没通过测试,其中6款机型日志记录的错误为 java.lang.ArithmeticException,divide by zero

详细日志如下

java.lang.ArithmeticException: divide by zero
    at com.haibin.calendarview.BaseMonthView.getIndex(BaseMonthView.java:116)
    at com.haibin.calendarview.MonthView.onClick(MonthView.java:105)
    at android.view.View.performClick(View.java:5184)
    at android.view.View$PerformClick.run(View.java:20910)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:145)
    at android.app.ActivityThread.main(ActivityThread.java:5942)
    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:1399)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)

image

huanghaibin-dev commented 5 years ago

已经修复了,抱歉,现在jcenter除了问题发的版本用不了,建议直接导入module使用了

Weiyi-C commented 5 years ago

更新到2.5.8后没有问题了