mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-21 04:32:03 +00:00
fix for bug #25720 as suggested by Michael Johnston
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27995 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1379fab985
commit
8c30364037
2 changed files with 7 additions and 2 deletions
|
@ -467,9 +467,9 @@ static id ValueForKey(NSObject *self, const char *key, unsigned size)
|
|||
name[8] = toupper(name[8]);
|
||||
}
|
||||
sel = GSSelectorFromName(name);
|
||||
if (sel != 0
|
||||
&& (imp = (BOOL (*)(id,SEL,id*,id*))[self methodForSelector: sel]) != 0)
|
||||
if (sel != 0 && [self respondsToSelector: sel] == YES)
|
||||
{
|
||||
imp = (BOOL (*)(id,SEL,id*,id*))[self methodForSelector: sel];
|
||||
return (*imp)(self, sel, aValue, anError);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue