You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using your great library and it looks like that the data I'm getting from server can be incosistent, so if the server returns no data, the app crashes in "+ (nonnull instancetype)withData:(nullable NSData *)data".
I've made the simple fix for that issue and am sharing it here with you:
id object = [NSJSONSerialization JSONObjectWithData:data ? data : [NSData data] options:NSJSONReadingAllowFragments error:&error];
The text was updated successfully, but these errors were encountered:
Hi,
I'm using your great library and it looks like that the data I'm getting from server can be incosistent, so if the server returns no data, the app crashes in "+ (nonnull instancetype)withData:(nullable NSData *)data".
I've made the simple fix for that issue and am sharing it here with you:
id object = [NSJSONSerialization JSONObjectWithData:data ? data : [NSData data] options:NSJSONReadingAllowFragments error:&error];
The text was updated successfully, but these errors were encountered: