Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for crash when height or width is nil (#20454)
Summary: This PR fixes the issue of height/width being nil in line no 128 of RCTImagePickerManager.m . ` [self _dismissPicker:picker args:tempImageTag ? @[tempImageTag, height, width] : nil]; ` Fixes#20411 Test Plan ---------- To verify the fix , please make the changes to make either height, width or both `nil ` in `- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary<NSString *, id> *)info` function of RCTImagePickerManager.m , run the code , you will see the error saying , one of the argument is nil from the array .   Now run the code with the fix , it will not crash . Release Notes: -------------- [IOS][BUGFIX][RCTImagePickerManager] - Change in RCTImagePickerManager to handle crashes if height/width is nil . Pull Request resolved: #20454 Differential Revision: D9061059 Pulled By: hramos fbshipit-source-id: b17f58e411f97f9b904cca0de6c151312c732972
- Loading branch information