Skip to content

Commit

Permalink
Added NSNull check to ensure backwards compatibility with Mantle
Browse files Browse the repository at this point in the history
  • Loading branch information
zioyero committed Dec 16, 2013
1 parent 3e10d5f commit 5771096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Model/RKVotable.m
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ - (BOOL)voted
+ (NSValueTransformer *)voteStatusJSONTransformer
{
return [MTLValueTransformer transformerWithBlock:^(id forward) {
if (!forward)
if (!forward || forward == [NSNull null])
{
return @(RKVoteStatusNone);
}
Expand Down

0 comments on commit 5771096

Please sign in to comment.