Skip to content

Commit

Permalink
Merge pull request #127 from scompt/bugs/NSJSONSerialization-crash
Browse files Browse the repository at this point in the history
Bugs/nsjson serialization crash
  • Loading branch information
VilemKurz committed Dec 20, 2011
2 parents 687e490 + 8a6167f commit be4b240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ShareKit/Sharers/Services/Twitter/SHKTwitter.m
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ - (void)sendUserInfo:(OAServiceTicket *)ticket didFinishWithData:(NSData *)data

NSError *error = nil;
NSMutableDictionary *userInfo;
if ([NSJSONSerialization class]) {
if (NSClassFromString(@"NSJSONSerialization")) {
userInfo = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&error];
} else {
userInfo = [[JSONDecoder decoder] mutableObjectWithData:data error:&error];
Expand Down

0 comments on commit be4b240

Please sign in to comment.