While preparing for an iOS release, observed a crash on an iPad (iOS 4.3.3, WiFi). The crash was fairly consistent to be considered random but once in a while, it would work as expected. On the other hand, an iPad 3 (iOS 5.1, WiFi/3G) wouldn't exhibit the same behaviour.
The crash was triggered at the completion block of an [AFHTTPRequestOperation][1] while parsing a (JSON) response with an empty body to a NSDictionary using [JSONKit][2].
This was an unexpected behaviour since an empty body response was not defined in the request/response contract.
FACTS
- iPad 4.3.3 WiFi