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.
[x] I have considered if this change warrants release notes and have added them to the appropriate section in the CHANGELOG.md if necessary.
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.
CHANGELOG.md
if necessary.