Added missing non-null test for NSError pointer

This commit is contained in:
Robert Altman
2011-12-12 17:06:17 -06:00
parent ec13fb03bd
commit 2969e6b9f3

View File

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