Permalink
Browse files

Fixed bug when the list is empty friendship

  • Loading branch information...
lucascorrea committed Oct 4, 2012
1 parent 02076b8 commit 281950f317d897512a2ee3eece327810db0c5960
Showing with 1 addition and 1 deletion.
  1. +1 −1 SCFacebook/SCFacebook/SCFacebook.m
@@ -458,7 +458,7 @@ - (void)request:(FBRequest *)request didLoad:(id)result
}
} else {
NSArray *resultData = [result objectForKey:@"data"];
- if ([resultData count] > 0) {
+ if ([resultData count] > 0 && resultData != nil) {
self.callback(YES,resultData);
}else if ([result isKindOfClass:[NSDictionary class]]) {
self.callback(YES,@"Publish Successfully");

0 comments on commit 281950f

Please sign in to comment.