Skip to content

Instantly share code, notes, and snippets.

@anitasantoso
Created February 27, 2013 22:17
Show Gist options
  • Save anitasantoso/5052341 to your computer and use it in GitHub Desktop.
Save anitasantoso/5052341 to your computer and use it in GitHub Desktop.
Snarky iOS SDK error message
2013-02-28 09:08:03.731 IICaptain[1328:907] *** -[__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):
(
0 CoreFoundation 0x33052a25 <redacted> + 84
1 IICaptain 0x000c751f +[DateUtil setLastDayOfTheWeek:] + 110
2 IICaptain 0x000c6269 -[CylinderChartData setData:] + 2136
3 IICaptain 0x000c033b __38-[ChartViewController viewWillAppear:]_block_invoke + 166
4 IICaptain 0x0009bec3 __91-[IICaptainAPI getHistoricalDataForDeploymentId:startDate:endDate:successBlock:errorBlock:]_block_invoke + 754
5 IICaptain 0x0008a01f __64-[AFHTTPRequestOperation setCompletionBlockWithSuccess:failure:]_block_invoke142 + 98
6 libdispatch.dylib 0x3b1f911f <redacted> + 10
7 libdispatch.dylib 0x3b1f84b7 <redacted> + 22
8 libdispatch.dylib 0x3b1fd1bd <redacted> + 224
9 CoreFoundation 0x33097f3b <redacted> + 1290
10 CoreFoundation 0x3300aebd CFRunLoopRunSpecific + 356
11 CoreFoundation 0x3300ad49 CFRunLoopRunInMode + 104
12 GraphicsServices 0x36be12eb GSEventRunModal + 74
13 UIKit 0x34f20301 UIApplicationMain + 1120
14 IICaptain 0x0007c8f9 main + 116
15 IICaptain 0x0007c880 start + 40
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment