Fixed lookup of superclass when superclass is nil.

This commit is contained in:
theraven 2010-04-26 21:34:48 +00:00
parent ce5b0e9f83
commit 289d412dac

View File

@ -558,6 +558,7 @@ class_get_super_class(Class _class)
* which might have ivars or methods added after this call (so we
* mustn't resolve this class now).
*/
if (NULL == _class->super_class) { return NULL; }
return (Class)objc_get_class((const char*)_class->super_class);
}
return _class->super_class;