mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-03-14 18:06:34 -04:00
Bugfix with missing null check when changing region combobox
This commit is contained in:
parent
3df091c406
commit
3d494ecc67
@ -164,12 +164,15 @@ public class FiatAccountViewCB extends CachedViewCB<FiatAccountPm> implements Co
|
||||
void onSelectRegion() {
|
||||
countryComboBox.setVisible(true);
|
||||
Region region = regionComboBox.getSelectionModel().getSelectedItem();
|
||||
countryComboBox.setItems(presentationModel.getAllCountriesFor(region));
|
||||
if (region != null)
|
||||
countryComboBox.setItems(presentationModel.getAllCountriesFor(region));
|
||||
}
|
||||
|
||||
@FXML
|
||||
void onSelectCountry() {
|
||||
presentationModel.setCountry(countryComboBox.getSelectionModel().getSelectedItem());
|
||||
Country country = countryComboBox.getSelectionModel().getSelectedItem();
|
||||
if (country != null)
|
||||
presentationModel.setCountry(country);
|
||||
}
|
||||
|
||||
@FXML
|
||||
|
Loading…
x
Reference in New Issue
Block a user