Closed jyoo980 closed 7 months ago
An unchecked call on the Optional result of Alert#showAndWait() may throw an exception at run time.
Alert#showAndWait()
This commit refactors it to one of the recommended approaches to safely get its value here.
Will push a fix for the build failure!
@leMaik I have fixed the build error.
Thank you. Not sure if an error would ever occur with this particular dialog, but it is certainly the proper way to handle this.
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.