SingleDateAndTimePicker icon indicating copy to clipboard operation
SingleDateAndTimePicker copied to clipboard

setTodayText crashes app

Open mice777 opened this issue 6 years ago • 1 comments

No matter where I put call to setTodayText, app crashes:

    java.lang.NullPointerException: Attempt to invoke virtual method 'long java.util.Date.getTime()' on a null object reference
        at java.util.Calendar.setTime(Calendar.java:1749)
        at com.github.florent37.singledateandtimepicker.SingleDateAndTimePicker.getDate(SingleDateAndTimePicker.java:428)
        at com.github.florent37.singledateandtimepicker.SingleDateAndTimePicker.updateDaysOfMonth(SingleDateAndTimePicker.java:499)
        at com.github.florent37.singledateandtimepicker.SingleDateAndTimePicker.setDefaultDate(SingleDateAndTimePicker.java:466)
        at com.github.florent37.singledateandtimepicker.SingleDateAndTimePicker.onAttachedToWindow(SingleDateAndTimePicker.java:221)
        at android.view.View.dispatchAttachedToWindow(View.java:18571)

All I want is change english "Today" to localized version. This seems like impossible.

mice777 avatar Oct 21 '19 12:10 mice777

same problem here, after setTodayText, then when I scroll the widget to today or before, then it will crash

AgungLaksana avatar Nov 05 '19 07:11 AgungLaksana