Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数组进行判空保护,避免崩溃 #1331

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ZenonHuang
Copy link

线上 bugly 监控到相关崩溃:

类型为:

-[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]

发生路径为:

-[TZPhotoPickerController pushPhotoPrevireViewController:needCheckSelectedModels:]_block_invoke.609 (TZPhotoPickerController.m:0)

-[TZPhotoPreviewController doneButtonClick] (TZPhotoPreviewController.m:401)

应该是在使用字面量时传了 nil 导致 。

线上监控到相关崩溃
@ZenonHuang ZenonHuang changed the title 对数组进行判空保护 数组进行判空保护,避免崩溃 Jul 6, 2020
@PPFSaber
Copy link

我这边也是这个问题 什么时候能修复啊

@ZenonHuang
Copy link
Author

我这边也是这个问题 什么时候能修复啊

看作者吧,什么时候提一个新pod库。估计很多项目都影响了。

@yulongfy
Copy link

+!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants