Skip to content
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

放到popupwindow 中使用报错 #70

Open
Arthurshen98 opened this issue Aug 12, 2017 · 2 comments
Open

放到popupwindow 中使用报错 #70

Arthurshen98 opened this issue Aug 12, 2017 · 2 comments

Comments

@Arthurshen98
Copy link

总报下标越界,奇葩了
ava.lang.ArrayIndexOutOfBoundsException: length=12; index=-1
at cn.aigestudio.datepicker.bizs.calendars.DPCNCalendar.getFestivalG(DPCNCalendar.java:216)
at cn.aigestudio.datepicker.bizs.calendars.DPCNCalendar.buildMonthL(DPCNCalendar.java:137)
at cn.aigestudio.datepicker.bizs.calendars.DPCNCalendar.buildMonthFestival(DPCNCalendar.java:107)
at cn.aigestudio.datepicker.bizs.calendars.DPCManager.buildDPInfo(DPCManager.java:177)
at cn.aigestudio.datepicker.bizs.calendars.DPCManager.obtainDPInfo(DPCManager.java:154)
at cn.aigestudio.datepicker.views.MonthView.draw(MonthView.java:314)
at cn.aigestudio.datepicker.views.MonthView.onDraw(MonthView.java:280)
at android.view.View.draw(View.java:14517)

@TonyZanyar
Copy link

要执行:
picker.setDate(2015, 7);
随便个月份吧

@SNXJ
Copy link

SNXJ commented Nov 17, 2017

我在dialog里使用已经 picker.setDate(2015, 7);
会报空指针,(如下)

java.lang.NullPointerException: Attempt to invoke virtual method 'void cn.aigestudio.datepicker.views.DatePicker.setDate(int, int)' on a null object reference

但是dataPick对象不为空,如果我对dataPick对象判空 if 判断后就报错(如下)

ava.lang.ArrayIndexOutOfBoundsException: length=12; index=-1
at cn.aigestudio.datepicker.bizs.calendars.DPCNCalendar.getFestivalG(DPCNCalendar.java:216)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants