Jawbone / UPPlatform_iOS_SDK

An Objective-C library for communicating with the UP Platform on iOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No internet connection crash

ghost-code opened this issue · 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