Skip to content

Instantly share code, notes, and snippets.

@corybohon
Created September 7, 2013 00:11
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 corybohon/6471569 to your computer and use it in GitHub Desktop.
Save corybohon/6471569 to your computer and use it in GitHub Desktop.
Using a nil NSDate log output error message.
*** -[__NSCFCalendar components:fromDate:]: 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