mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-15 23:22:53 +08:00
Added missing non-null test for NSError pointer
This commit is contained in:
@@ -244,7 +244,7 @@ extern NSString* cacheURLKey;
|
||||
}
|
||||
id object = [parser objectFromString:[self bodyAsString] error:error];
|
||||
if (object == nil) {
|
||||
if (*error) {
|
||||
if (error && *error) {
|
||||
RKLogError(@"Unable to parse response body: %@", [*error localizedDescription]);
|
||||
}
|
||||
return nil;
|
||||
|
||||
Reference in New Issue
Block a user