mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-15 10:29:43 -04:00
Add null check
This commit is contained in:
parent
da2e7fd968
commit
a4fd70f49b
1 changed files with 4 additions and 2 deletions
|
@ -153,6 +153,7 @@ class CreateOfferModel extends UIModel {
|
|||
btcCode.bind(settings.btcDenominationProperty());
|
||||
|
||||
// we need to set it here already as initWithData is called before activate
|
||||
if (settings != null)
|
||||
collateralAsLong.set(settings.getCollateral());
|
||||
|
||||
super.initialize();
|
||||
|
@ -165,6 +166,7 @@ class CreateOfferModel extends UIModel {
|
|||
// might be changed after screen change
|
||||
if (settings != null) {
|
||||
// set it here again to cover the case of an collateral change after a screen change
|
||||
if (settings != null)
|
||||
collateralAsLong.set(settings.getCollateral());
|
||||
|
||||
acceptedCountries.setAll(settings.getAcceptedCountries());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue