Skip to content

Commit

Permalink
Merge pull request #5172 from jmacxx/fix_npe_offer_trigger_price
Browse files Browse the repository at this point in the history
Fix NPE at offer entry when trading account switched
  • Loading branch information
sqrrm authored Feb 10, 2021
2 parents 7e7c876 + 98feab3 commit e9e596e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,8 @@ public void onTriggerPriceTextFieldChanged() {
// if not reset here. Not clear why...
triggerPriceValidationResult.set(new InputValidator.ValidationResult(true));

if (dataModel.getPrice().get() == null) // fix NPE @ bisq/issues/5166
return;
InputValidator.ValidationResult result = PriceUtil.isTriggerPriceValid(triggerPriceAsString,
dataModel.getPrice().get(),
dataModel.isSellOffer(),
Expand Down

0 comments on commit e9e596e

Please sign in to comment.