I am trying to get Events out of the users device calendar with this code:
Date from = new Date();
java.util.Calendar c = java.util.Calendar.getInstance();
c.add(java.util.Calendar.MONTH, 1);
Date to = c.getTime();
String calendarId = dc.openCalendar(calenderName, false);
Collection <EventInfo> events = dc.getEvents(calendarId, from, to);
The last line is where the Exception is thrown and I have absolutely no idea why.
I cant deliver any Exception Messages since the CN1Lib cant be debugged within the ide or the simulator, which makes it really hard to find the bug here.
When getting to the Exception it is just telling me:
Error
An internal application error occurred: java.lang.ArrayIndexOutOfBoundsException: null
Thanks in advance