mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Check for nil passed to isEqual:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3039 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
dd21d4651b
commit
8060a14870
2 changed files with 8 additions and 0 deletions
|
@ -259,6 +259,8 @@
|
|||
Class c;
|
||||
if (anObject == self)
|
||||
return YES;
|
||||
if (anObject == nil)
|
||||
return NO;
|
||||
c = fastClassOfInstance(anObject);
|
||||
|
||||
if (c == _fastCls._NSGCString || c == _fastCls._NSGMutableCString || c == _fastCls._NXConstantString)
|
||||
|
@ -288,6 +290,10 @@
|
|||
{
|
||||
Class c;
|
||||
|
||||
if (aString == self)
|
||||
return YES;
|
||||
if (aString == nil)
|
||||
return NO;
|
||||
c = fastClassOfInstance(aString);
|
||||
if (c == _fastCls._NSGCString || c == _fastCls._NSGMutableCString || c == _fastCls._NXConstantString)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue