From 838c9098bb946ee03195b4891d7253b0dbf61a81 Mon Sep 17 00:00:00 2001 From: Zenon Date: Mon, 6 Jul 2020 17:29:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=95=B0=E7=BB=84=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E5=88=A4=E7=A9=BA=E4=BF=9D=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 线上监控到相关崩溃 --- .../TZImagePickerController/TZPhotoPickerController.m | 3 +++ 1 file changed, 3 insertions(+) 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];