mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Be defensive about checking for key beginning with @
This commit is contained in:
parent
d4df4b6d87
commit
e7035cadf3
1 changed files with 1 additions and 1 deletions
|
@ -1240,7 +1240,7 @@ compareIt(id o1, id o2, void* context)
|
|||
{
|
||||
id o;
|
||||
|
||||
if ([key hasPrefix: @"@"] == YES)
|
||||
if ([key isKindOfClass: [NSString class]] && [key hasPrefix: @"@"])
|
||||
{
|
||||
o = [super valueForKey: [key substringFromIndex: 1]];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue