Fixed lookup of superclass when superclass is nil.

main
theraven 16 years ago
parent ce5b0e9f83
commit 289d412dac

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

Loading…
Cancel
Save