Closed valnaumov closed 5 years ago
It turned out, that the cause was in Locale being set by the application. Some time ago I changed the locale inside JGnash to "en" (just English, no country code).
As country code is not set, default currency is created with code "XXX" in the DefaultCurrencies class, and later at this line jgnash/uifx/wizard/file/NewFileTwoController.java:77 "XXX" is not matched to any known currency code, and is not set.
We should use find method returning optional and then throw RE if currency is not matched.
And perhaps, we should not allow user to change their locale to the one missing country code. Or, maybe add "XXX" to the list of known currencies?
Thanks for the patch and tracking the source down.
Expected Behavior
Wizard is shown.
Actual Behavior
Steps to Reproduce the Problem
Click File -> New
Specifications