From 28ec323b829c13fd673fcf6f3c8559ae46ff75ee Mon Sep 17 00:00:00 2001 From: Stepan Generalov Date: Mon, 17 Jun 2013 15:08:21 -0600 Subject: [PATCH] SOCKit: don't crash in -performSelector:onObject:sourceString: when object is nil --- SOCKit.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SOCKit.m b/SOCKit.m index 30f8eb8..ae73363 100644 --- a/SOCKit.m +++ b/SOCKit.m @@ -394,6 +394,9 @@ - (id)performSelector:(SEL)selector onObject:(id)object sourceString:(NSString * if (isInitializer) { object = [[object alloc] autorelease]; } + + if (!object) + return nil; NSArray* values = nil; BOOL succeeded = [self gatherParameterValues:&values fromString:sourceString];