mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-15 17:08:04 +08:00
Fixed bug raising exception when loaderForObject: is invoked with a method of RKRequestMethodInvalid. fixes #601
This commit is contained in:
@@ -258,6 +258,7 @@
|
||||
}
|
||||
|
||||
- (RKObjectMappingDefinition *)mappingForPatternMatchingString:(NSString *)string context:(RKObjectMappingProviderContext)context {
|
||||
NSAssert(string, @"Cannot look up mapping matching nil pattern string.");
|
||||
RKOrderedDictionary *contextValue = [self valueForContext:context];
|
||||
NSAssert(contextValue, @"Attempted to retrieve mapping from undefined context: %d", context);
|
||||
for (NSString *pattern in contextValue) {
|
||||
|
||||
Reference in New Issue
Block a user