Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

The self.tests and self.theConvertersByName is always nil in original…

… codes, because [nil setByAddingObject] returns nil, [nil mutableCopy] return nil. That cause the customized convert function will not be invoked.
  • Loading branch information...
commit ac1f8efa5de9a509de80f46b8dac705cb696c0df 1 parent 85ca11d
@fbzhong fbzhong authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 Source/Experimental/CFilteringJSONSerializer.m
View
10 Source/Experimental/CFilteringJSONSerializer.m
@@ -13,6 +13,16 @@ @implementation CFilteringJSONSerializer
@synthesize tests;
@synthesize convertersByName;
+- (id)init
+{
+ self = [super init];
+ if (self) {
+ tests = [[NSSet alloc] init];
+ convertersByName = [[NSDictionary alloc] init];
+ }
+ return self;
+}
+
- (void)dealloc
{
[tests release];
Please sign in to comment.
Something went wrong with that request. Please try again.