Jawbone/UPPlatform_iOS_SDK

No internet connection crash

ghost-code opened this issue · 2 comments

UPPlatform.m line 450

Method:
- (void)sendRequest:(UPURLRequest *)request completion:(UPPlatformRequestCompletion)completion

Line:
NSDictionary *jsonResponse = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];

If there is no internet connection (airplane mode), data will be nil when it gets to this point. The app will crash.

Actually, #29 should solve the issue.

resolved w/ #27