-
Notifications
You must be signed in to change notification settings - Fork 340
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
NullPointerException #37
Comments
@nathanzahra Could you copy the whole stacktrace here if possible? |
03-02 15:21:24.259 26787-26787/com.project E/AndroidRuntime: FATAL EXCEPTION: main I think the problem is with Calendar mWeekCounter inside CalendarManager. The MONTH variable is set to 0 in
and the month does not get added, so later when retrieving it from
it throws a NullPointerException. Still trying to get to the bottom of it. 2nd Mar
29th Feb
|
The source on GitHub seems to have tackled this issue already. It is newer than the library available at maven. I managed to get it to work by copying over the library module from source, downgrading java from 1.8 to 1.7, and importing it into my project. Thanks |
So before 1st March the sample project provided was not crashing. It works if I change the device time to 29 Feb. Any ideas?
Method: mockList(List eventList)
Line: BaseCalendarEvent event1 = new BaseCalendarEvent("Thibault travels in Iceland", "A wonderful journey!", "Iceland",
ContextCompat.getColor(getActivity(), R.color.orange_dark), startTime1, endTime1, true);
Error: Method threw 'java.lang.NullPointerException' exception. Cannot evaluate com.github.tibolte.agendacalendarview.models.BaseCalendarEvent.toString()
Edit: Apparently the problem above does not have to do with this particular issue
The text was updated successfully, but these errors were encountered: