Commits

Isaac Greenspan committed 1a7163d

fixing case where faultString is nil (caused nil-object-insertion exception) by setting faultString to an empty string in that case

  • Participants
  • Parent commits 79c83e4
  • Tags used-in-asLJ-v0.6.2-beta, used-in-asLJ-v0.6.3-beta

Comments (0)

Files changed (1)

 		isFault = TRUE;
 		faultCode = [response faultCode];
 		faultString = [response faultString];
+		if (!faultString) faultString = @"";
 		
 		VLOG(@"Error returned by XMLRPC call (%@): %@",faultCode,faultString);
 		
 	isError = TRUE;
 	faultCode = [[NSNumber numberWithInteger:[error code]] retain];
 	faultString = [[error userInfo] objectForKey:NSLocalizedDescriptionKey];
+	if (!faultString) faultString = @"";
 	innerError = [error retain];
 	VLOG(@"Error with XMLRPC request (%@): %@",faultCode,faultString);