Permalink
Browse files

[fix #119] insert kCFNull instead of nil into result of array.

  • Loading branch information...
Watson1978 committed Jul 2, 2012
1 parent b53bcfe commit 8e2d2331811cecc7511bd3bd60e976d6ad5a977b
Showing with 3 additions and 0 deletions.
  1. +3 −0 NSDictionary.m
View
@@ -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;

0 comments on commit 8e2d233

Please sign in to comment.