mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-12-02 17:16:22 +00:00
class_getClassMethod() does not handle Nil class correctly
This commit is contained in:
parent
2ad50d855c
commit
bbd41925ea
@ -226,7 +226,10 @@ int class_getVersion(Class class) {
|
||||
|
||||
Method class_getClassMethod(Class class, SEL selector)
|
||||
{
|
||||
return class_getInstanceMethod(class->isa, selector);
|
||||
if (class == Nil) {
|
||||
return NULL;
|
||||
}
|
||||
return class_getInstanceMethod(class->isa, selector);
|
||||
}
|
||||
|
||||
Ivar class_getClassVariable(Class cls,const char *name) {
|
||||
|
Loading…
Reference in New Issue
Block a user