Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Somehow we merged in bad code that would cause [null] -> null.
  • Loading branch information
schwa committed Jan 26, 2011
1 parent 33c6a0c commit 03ba12c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions Source/JSON/CJSONScanner.m
Expand Up @@ -385,19 +385,6 @@ - (BOOL)scanJSONArray:(NSArray **)outArray error:(NSError **)outError
return(NO);
}

if(theValue == nil)
{
if (outError)
{
NSDictionary *theUserInfo = [NSDictionary dictionaryWithObjectsAndKeys:
@"Could not scan array. Value is NULL.", NSLocalizedDescriptionKey,
NULL];
*outError = [NSError errorWithDomain:kJSONScannerErrorDomain code:-9 userInfo:theUserInfo];
}
[theArray release];
return(NO);
}

if (theValue == NULL)
{
if (self.nullObject != NULL)
Expand Down

0 comments on commit 03ba12c

Please sign in to comment.