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:
Tadeu Zagallo
2015-10-02 03:30:51 -07:00
committed by facebook-github-bot-5
parent 8221c33650
commit eee2fd1ca2

View File

@@ -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];