Skip to content

Commit

Permalink
Fix crash when taking photo from camera
Browse files Browse the repository at this point in the history
Dictionary was being initialized with nil values which causes crash in Obj-C. I've put a ternary in that will send empty string values for the possible nil values
  • Loading branch information
zkrige authored Jul 31, 2017
1 parent ff18678 commit d7bf02f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/ImageCropPicker.m
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,8 @@ - (void) processSingleImagePick:(UIImage*)image withViewController:(UIViewContro
// Alert.alert in the .then() handler.
[viewController dismissViewControllerAnimated:YES completion:[self waitAnimationEnd:^{
self.resolve([self createAttachmentResponse:filePath
withLocalIdentifier: localIdentifier
withFilename: filename
withLocalIdentifier:(localIdentifier) ? localIdentifier : @""
withFilename:(filename) ? filename : @""
withWidth:imageResult.width
withHeight:imageResult.height
withMime:imageResult.mime
Expand Down

0 comments on commit d7bf02f

Please sign in to comment.