diff --git a/Libraries/Blob/RCTBlobManager.mm b/Libraries/Blob/RCTBlobManager.mm index 8d77cd5b15f553..aa45072553dcbe 100755 --- a/Libraries/Blob/RCTBlobManager.mm +++ b/Libraries/Blob/RCTBlobManager.mm @@ -13,6 +13,7 @@ #import #import +#import #import static NSString *const kBlobURIScheme = @"blob"; @@ -263,8 +264,8 @@ - (id)handleNetworkingResponse:(NSURLResponse *)response data:(NSData *)data @"blobId": [self store:data], @"offset": @0, @"size": @(data.length), - @"name": [response suggestedFilename], - @"type": [response MIMEType], + @"name": RCTNullIfNil([response suggestedFilename]), + @"type": RCTNullIfNil([response MIMEType]), }; }