Skip to content

Commit

Permalink
Added missing non-null test for NSError pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
inquinity committed Dec 12, 2011
1 parent ec13fb0 commit 2969e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Network/RKResponse.m
Expand Up @@ -244,7 +244,7 @@ - (id)parsedBody:(NSError**)error {
}
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;
Expand Down

0 comments on commit 2969e6b

Please sign in to comment.