mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-09 10:20:59 +00:00
Fixed: Method isEqual: can handle nil as an argument for CPExpression and CPPredicate including sub classes.
This commit is contained in:
1 parent
8a94c33a64
commit
ffdee8c3d7
10 files changed
+10
-10
No files matched your search
@@ -51,7 +51,7 @@
|
||||
if (object === self)
|
||||
return YES;
|
||||
|
||||
if (object.isa !== self.isa || ![[object keyPath] isEqualToString:[self keyPath]])
|
||||
if (object === nil || object.isa !== self.isa || ![[object keyPath] isEqualToString:[self keyPath]])
|
||||
return NO;
|
||||
|
||||
return YES;
|
||||
|
||||
Reference in new issue
Block a user