File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -512,8 +512,13 @@ - (void)resultForImage:(CDVPictureOptions*)options info:(NSDictionary*)info comp
512
512
513
513
- (CDVPluginResult*)resultForVideo : (NSDictionary *)info
514
514
{
515
- NSString * moviePath = [[info objectForKey: UIImagePickerControllerMediaURL] absoluteString ];
516
- return [CDVPluginResult resultWithStatus: CDVCommandStatus_OK messageAsString: moviePath];
515
+ @try {
516
+ NSString * moviePath = [[info objectForKey: UIImagePickerControllerMediaURL] absoluteString ];
517
+ return [CDVPluginResult resultWithStatus: CDVCommandStatus_OK messageAsString: moviePath];
518
+ } @catch (NSException *exception) {
519
+ NSLog (@" Camera.resultForVideo: error retrieving file path" );
520
+ return [CDVPluginResult resultWithStatus: CDVCommandStatus_ERROR messageAsString: @" " ];
521
+ }
517
522
}
518
523
519
524
- (void )imagePickerController : (UIImagePickerController*)picker didFinishPickingMediaWithInfo : (NSDictionary *)info
You can’t perform that action at this time.
0 commit comments