把一个空值赋值给了一个变量; 所以在赋值之前,需要先对其进行判空: define checkStringNull(Str) (Str) == [NSNull null] || (Str) == nil ? @”” : [NSString stringWithFormat:@”%@”, (Str)]