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 for possible crash in SceneChooserController.java #1677

Merged
merged 2 commits into from
Dec 23, 2023

Conversation

jyoo980
Copy link
Contributor

@jyoo980 jyoo980 commented Dec 18, 2023

An unchecked call on the Optional result of Alert#showAndWait() may throw an exception at run time.

This commit refactors it to one of the recommended approaches to safely get its value here.

@jyoo980
Copy link
Contributor Author

jyoo980 commented Dec 18, 2023

Will push a fix for the build failure!

@jyoo980
Copy link
Contributor Author

jyoo980 commented Dec 18, 2023

@leMaik I have fixed the build error.

@leMaik
Copy link
Member

leMaik commented Dec 19, 2023

Thank you. Not sure if an error would ever occur with this particular dialog, but it is certainly the proper way to handle this.

@leMaik leMaik merged commit a7f15dd into chunky-dev:master Dec 23, 2023
1 check passed
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