add extra check if NSURL returns nil which can cause to crash in CKGalleryManager
This commit is contained in:
parent
d6488070a7
commit
34058bc2f7
@ -221,6 +221,9 @@ RCT_EXPORT_METHOD(resizeImage:(NSDictionary*)image
|
||||
if (imageUrlString) {
|
||||
|
||||
NSURL *url = [NSURL URLWithString:imageUrlString];
|
||||
if (!url) {
|
||||
resolve(nil);
|
||||
}
|
||||
NSData *data = [NSData dataWithContentsOfURL:url];
|
||||
|
||||
UIImage *originalImage = [UIImage imageWithData:data];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user