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

ELCImagePicker crash reported in Crashlytics. #143

Open
Rjklsi opened this issue Mar 23, 2020 · 2 comments
Open

ELCImagePicker crash reported in Crashlytics. #143

Rjklsi opened this issue Mar 23, 2020 · 2 comments

Comments

@Rjklsi
Copy link

Rjklsi commented Mar 23, 2020

In my project I am using ELCImagePicker to select multiple images. A crash is reported in Fabric Crashlytics, but I am totally unable to reproduce it. Here is the crash title:

Fatal Exception: NSInvalidArgumentException
*** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: UIImagePickerControllerOriginalImage)

It is reported on iPhone XS Max iOS 13.3.1

@elabda3company
Copy link

Did you find any solution for it ?

@Rjklsi
Copy link
Author

Rjklsi commented May 6, 2020

yeah I fixed it using this line of code :
if (img != nil) {
[workingDictionary setObject:img forKey:UIImagePickerControllerOriginalImage];
}
in selectedAssets function in ELCImagePickerController.m file.
Don't know if it is a good fix but now at least my app in not crashing anymore.

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

No branches or pull requests

2 participants