diff --git a/ios/ImagePickerManager.m b/ios/ImagePickerManager.m index 93dfc1ac3..9bb0a206e 100644 --- a/ios/ImagePickerManager.m +++ b/ios/ImagePickerManager.m @@ -453,11 +453,13 @@ - (void)imagePickerController:(UIImagePickerController *)picker didFinishPicking [fileManager removeItemAtURL:videoDestinationURL error:nil]; } - NSError *error = nil; - [fileManager moveItemAtURL:videoURL toURL:videoDestinationURL error:&error]; - if (error) { - self.callback(@[@{@"error": error.localizedFailureReason}]); - return; + if (videoURL) { // Protect against reported crash + NSError *error = nil; + [fileManager moveItemAtURL:videoURL toURL:videoDestinationURL error:&error]; + if (error) { + self.callback(@[@{@"error": error.localizedFailureReason}]); + return; + } } }