Skip to content

Fix crash by safely handling optional casting for ‘duration’ #347

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

Merged
merged 1 commit into from
Dec 29, 2024

Conversation

bjorkert
Copy link
Contributor

This PR addresses a crash caused by force unwrapping during the casting of ‘duration’. The casting is now handled safely using optional binding to prevent runtime errors.

Copy link
Collaborator

@marionbarker marionbarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved by code inspection.
Built on test phone. App works normally.

@marionbarker marionbarker merged commit e57a3ba into dev Dec 29, 2024
@bjorkert bjorkert deleted the exception-handling branch January 2, 2025 13:38
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