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

Fix crash when displaying an empty view #409

Merged
merged 3 commits into from
May 13, 2023

Conversation

hassaanelgarem
Copy link
Contributor

References

Description

If the media picker delegate implements the emptyViewController function but ends up returning nil, this results in a crash. This PR makes sure that the empty view controller is always set, even if the delegate returns nil.

Testing Details

Please test using the referenced WPiOS PR.


  • I have considered if this change warrants release notes and have added them to the appropriate section in the CHANGELOG.md if necessary.

@staskus
Copy link
Contributor

staskus commented Aug 1, 2023

Unfortunately, it caused WPMediaPickerViewController crash: NSInternalInconsistencyException: Invalid batch updates detected, we'll need to revert or adjust these changes.

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

Successfully merging this pull request may close these issues.

3 participants