Closed ashray-aw closed 6 years ago
Posting code that doesn't compile is very disrespectful. Please take the time to check that your code works before posting it.
Fixed in 11f112ee25c65e34f49bcc5111e205013fe8cd68
Sincere Apologies. I have edited the original post to include code that compiles. And thank you for the fix.
Hello,
Thank you for this library! We are using the 0.6.1 version of this library and we see a NPE crash when our data does not contain the "FREQ" param in the recurrence rule. I agree it is a required param, but we have servers events with this kind of payload
Full stack trace "biweekly.util.com.google.ical.iter.RecurrenceIteratorFactory.createRecurrenceIterator(RecurrenceIteratorFactory.java:242)" "biweekly.io.ICalTimeZone.createIterator(ICalTimeZone.java:499)" "biweekly.io.ICalTimeZone.getObservanceDateClosestToTheGivenDate(ICalTimeZone.java:385)" "biweekly.io.ICalTimeZone.getObservanceBoundary(ICalTimeZone.java:345)" "biweekly.io.ICalTimeZone.getObservanceBoundary(ICalTimeZone.java:271)" "biweekly.io.ICalTimeZone.getObservance(ICalTimeZone.java:280)" "biweekly.io.ICalTimeZone.calculateRawOffset(ICalTimeZone.java:206)" "biweekly.io.ICalTimeZone.(ICalTimeZone.java:92)"
"biweekly.io.StreamReader.handleTimezones(StreamReader.java:175)"
"biweekly.io.StreamReader.readNext(StreamReader.java:145)"
Test code
Please feel free to let me know if you have any questions