mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-07 22:42:13 +08:00
Fix RCTConvert analyser error
Summary: @public Fix analyser error on RCTConvert where a key used to subscript an NSMutableDictionary could possibly be nil. Reviewed By: @alexeylang, @jspahrsummers Differential Revision: D2498988
This commit is contained in:
committed by
facebook-github-bot-5
parent
8221c33650
commit
eee2fd1ca2
@@ -422,6 +422,7 @@ RCT_CGSTRUCT_CONVERTER(CGAffineTransform, (@[
|
||||
isPackagerAsset = [self BOOL:json[@"__packager_asset"]];
|
||||
} else {
|
||||
RCTLogConvertError(json, @"an image");
|
||||
return nil;
|
||||
}
|
||||
|
||||
NSURL *URL = [self NSURL:path];
|
||||
|
||||
Reference in New Issue
Block a user