mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Add NSAssert to check the self.mutablePropertyMappings variable.
This commit is contained in:
@@ -128,6 +128,7 @@ NSString * const RKObjectMappingNestingAttributeKeyName = @"<RK_NESTING_ATTRIBUT
|
||||
{
|
||||
NSAssert1([[self mappedKeyPaths] containsObject:propertyMapping.destinationKeyPath] == NO,
|
||||
@"Unable to add mapping for keyPath %@, one already exists...", propertyMapping.destinationKeyPath);
|
||||
NSAssert(self.mutablePropertyMappings, @"self.mutablePropertyMappings is nil");
|
||||
[self.mutablePropertyMappings addObject:propertyMapping];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user