feedhenry / fh-ios-sdk

FeedHenry iOS (Objective-C) SDK
http://feedhenry.org
Apache License 2.0
6 stars 16 forks source link

Added a check for null response (otherwise App crashes on SSL Handshake error) #38

Closed antiguab closed 9 years ago

antiguab commented 9 years ago

In FHSyncDataset.m, and specifically the startSyncTask: method, we get a null response when there is an SSL Handshake error. Trying to pass a JSONString of the null response into FHSyncUtils.m results in the app crashing. This PR checks for a null response, and provides a message for FHSyncUtils.m to use.

Log example: https://gist.github.com/antiguab/4192fe949878c605e69d

wei-lee commented 9 years ago

reviewed. Thanks for the patch!