We keep hitting a crash in our app store build where the delegate method calendar:prepareMenuItemView:date: of JTCalendarDelegate is called. I believe what is happening is that either a nil pointer for either menuItemView or date is being passed in, or either of those two pointers is actually NSNULL. In both cases, the Swift runtime would not like that. This should check for that condition.
Please note, I have not been able to reproduce this locally, but based on the crash log it's the only explanation I can think of that would cause the crash.
We keep hitting a crash in our app store build where the delegate method
calendar:prepareMenuItemView:date:
ofJTCalendarDelegate
is called. I believe what is happening is that either a nil pointer for eithermenuItemView
ordate
is being passed in, or either of those two pointers is actually NSNULL. In both cases, the Swift runtime would not like that. This should check for that condition.Please note, I have not been able to reproduce this locally, but based on the crash log it's the only explanation I can think of that would cause the crash.