Add NSAssert to check the self.mutablePropertyMappings variable.

This commit is contained in:
Jawwad Ahmad
2012-08-30 18:56:33 -04:00
parent c0b6a95e10
commit 6f2db23566

View File

@@ -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];
}