Fixed: Method isEqual: can handle nil as an argument for CPExpression and CPPredicate including sub classes.

This commit is contained in:
Martin Carlberg committed 2013-04-23 12:58:07 +02:00
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;