diff --git a/Source/NSKVOSupport.m b/Source/NSKVOSupport.m index ea511986e..d5f88074b 100644 --- a/Source/NSKVOSupport.m +++ b/Source/NSKVOSupport.m @@ -720,7 +720,10 @@ + (NSSet *) keyPathsForValuesAffectingValueForKey: (NSString *)key free(selectorName); } - return ((NSSet *(*)(id, SEL))objc_msgSend)(self, sel); + if ([self respondsToSelector:sel]) + { + return ((NSSet *(*)(id, SEL))objc_msgSend)(self, sel); + } } return emptySet; }