mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Fix NPE when duplicate offer with deleted account
This commit is contained in:
parent
a62655c15d
commit
09f23f3b6c
1 changed files with 5 additions and 1 deletions
|
@ -92,7 +92,11 @@ class DuplicateOfferDataModel extends MutableOfferDataModel {
|
|||
public void populateData(Offer offer) {
|
||||
if (offer == null)
|
||||
return;
|
||||
paymentAccount = user.getPaymentAccount(offer.getMakerPaymentAccountId());
|
||||
|
||||
PaymentAccount account = user.getPaymentAccount(offer.getMakerPaymentAccountId());
|
||||
if (account != null) {
|
||||
this.paymentAccount = account;
|
||||
}
|
||||
setMinAmount(offer.getMinAmount());
|
||||
setAmount(offer.getAmount());
|
||||
setPrice(offer.getPrice());
|
||||
|
|
Loading…
Add table
Reference in a new issue