Skip to content

Conversation

@denisbevilacqua
Copy link
Contributor

Motivation:

When thumbnail is null (It happens in some videos), the following error message is displayed in the Xcode console:

Swift runtime failure: Unexpectedly found nil while unwrapping an Optional value'.

Solution:

This simple approach only checks that the thumbnail is not nil before calling the getImagePathFromUIImage method. There might be a better way to solve it, but this way fixes the issue.

@baronha baronha merged commit 55ed9ac into NitrogenZLab:main Sep 6, 2023
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.

2 participants