Reviewed By: akotulski Differential Revision: D4231656 fbshipit-source-id: 4201e57master
parent
a8b0871660
commit
616ee9276b
@ -0,0 +1,13 @@
|
||||
#include <Foundation/Foundation.h>
|
||||
@interface Nsstring_length_no_npe : NSObject
|
||||
@end
|
||||
|
||||
@implementation Nsstring_length_no_npe
|
||||
|
||||
- (NSDictionary*)logMessage:(NSString* __nullable)message {
|
||||
if (message.length > 0) {
|
||||
return @{ @"key" : message }; // No NPE because of model of NSString length.
|
||||
} else
|
||||
return nil;
|
||||
}
|
||||
@end
|
Loading…
Reference in new issue