Skip to content

Instantly share code, notes, and snippets.

@amolloy
Created October 30, 2012 01:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amolloy/3977826 to your computer and use it in GitHub Desktop.
Save amolloy/3977826 to your computer and use it in GitHub Desktop.
NSCalendar grumpy assert
-[__NSCFCalendar rangeOfUnit:inUnit:forDate:]: date cannot be nil
I mean really, what do you think that operation is supposed to mean with a nil date?
An exception has been avoided for now.
A few of these errors are going to be reported with this complaint, then further violations will simply silently do whatever random thing results from the nil.
Here is the backtrace where this occurred this time (some frames may be missing due to compiler optimizations):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment