diff --git a/TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m b/TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m index e9253cef..f227214f 100755 --- a/TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m +++ b/TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m @@ -752,6 +752,9 @@ - (void)pushPhotoPrevireViewController:(TZPhotoPreviewController *)photoPreviewV }]; [photoPreviewVc setDoneButtonClickBlockCropMode:^(UIImage *cropedImage, id asset) { __strong typeof(weakSelf) strongSelf = weakSelf; + if((!cropedImage)||(!asset)){ + return; + } [strongSelf didGetAllPhotos:@[cropedImage] assets:@[asset] infoArr:nil]; }]; [self.navigationController pushViewController:photoPreviewVc animated:YES];