Skip to content

Commit

Permalink
fix npe duplicating offer with deleted payment account
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Jan 31, 2025
1 parent e6b29b8 commit 2521749
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,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());
Expand Down

0 comments on commit 2521749

Please sign in to comment.