Added NULL checks to class_respondsToSelector()

This commit is contained in:
theraven 2011-02-12 11:03:41 +00:00
parent e76143d006
commit 63c2c0ce73

View File

@ -288,6 +288,8 @@ Slot_t objc_get_slot(Class cls, SEL selector)
BOOL class_respondsToSelector(Class cls, SEL selector)
{
if (0 == selector || 0 == cls) { return NO; }
return NULL != objc_get_slot(cls, selector);
}