Skip to content

Commit

Permalink
[fix #119] insert kCFNull instead of nil into result of array.
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Jul 2, 2012
1 parent b53bcfe commit 8e2d233
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NSDictionary.m
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@
NSMutableArray *ary = [NSMutableArray new];
for (int i = 0; i < argc; i++) {
id value = [rcv objectForKey:RB2OC(argv[i])];
if (value == NULL) {
value = (id)kCFNull;
}
[ary addObject:value];
}
return ary;
Expand Down

0 comments on commit 8e2d233

Please sign in to comment.