Permalink
Browse files

Fix backwards compatibility for keys with value null

  • Loading branch information...
1 parent dcb2f9d commit c3203f3f022f73f6a73c63b6dbddd39ee60dea82 David Cordero committed Feb 11, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 Mantle/MTLJSONAdapter.m
@@ -123,7 +123,7 @@ - (id)initWithJSONDictionary:(NSDictionary *)JSONDictionary modelClass:(Class)mo
}
value = [value valueForKey:itemJSONKeyPathComponent];
- if (value == nil) break;
+ if (value == nil || value == NSNull.null) break;
}
if (value == nil) continue;

0 comments on commit c3203f3

Please sign in to comment.