Skip to content

Instantly share code, notes, and snippets.

@jpsim
Created October 18, 2013 18:59
Show Gist options
  • Select an option

  • Save jpsim/7046391 to your computer and use it in GitHub Desktop.

Select an option

Save jpsim/7046391 to your computer and use it in GitHub Desktop.
NSCFCalendar Error
-[__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.
@jpsim
Copy link
Author

jpsim commented Oct 18, 2013

This is the Apple-defined error you get when calling [[NSCalendar currentCalendar] components:0 fromDate:nil]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment