Skip to content

Commit

Permalink
Merge pull request #18 from zioyero/master
Browse files Browse the repository at this point in the history
Fixed bug in RKVotable::voteStatus
  • Loading branch information
Sam Symons committed Dec 18, 2013
2 parents 5f39eed + 5771096 commit a001f32
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 == [NSNull null])
if (!forward || forward == [NSNull null])
{
return @(RKVoteStatusNone);
}
Expand Down

0 comments on commit a001f32

Please sign in to comment.