Skip to content

Commit

Permalink
make sure to check for NSNull instead of nil
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Haynie committed Dec 12, 2009
1 parent 82a4042 commit bb35717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iphone/modules/FacebookModule/FacebookModule.m
Expand Up @@ -484,7 +484,7 @@ - (void)setup:(NSString*)key secret:(NSString*)secret proxy:(NSString*)proxy
dialog = nil; dialog = nil;
[session release]; [session release];


if (proxy!=nil) if ([proxy isKindOfClass:[NSString class]])
{ {
session = [[FBSession sessionForApplication:key getSessionProxy:proxy delegate:self] retain]; session = [[FBSession sessionForApplication:key getSessionProxy:proxy delegate:self] retain];
} }
Expand Down

0 comments on commit bb35717

Please sign in to comment.