mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Add an assert to prevent weird errors.
This commit is contained in:
@@ -70,6 +70,7 @@
|
||||
id collection = [[[[[value class] alloc] init] autorelease] mutableCopy];
|
||||
for (id subObject in value) {
|
||||
if ([subObject isKindOfClass:[NSManagedObjectID class]]) {
|
||||
NSAssert(self.objectStore, @"Object store cannot be nil");
|
||||
NSManagedObject* managedObject = [self.objectStore objectWithID:(NSManagedObjectID*)subObject];
|
||||
[collection addObject:managedObject];
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user