diff --git a/core/src/main/java/haveno/core/offer/placeoffer/tasks/MakerReserveOfferFunds.java b/core/src/main/java/haveno/core/offer/placeoffer/tasks/MakerReserveOfferFunds.java index a33b9b836d..0d9271a41e 100644 --- a/core/src/main/java/haveno/core/offer/placeoffer/tasks/MakerReserveOfferFunds.java +++ b/core/src/main/java/haveno/core/offer/placeoffer/tasks/MakerReserveOfferFunds.java @@ -124,15 +124,17 @@ public class MakerReserveOfferFunds extends Task { offer.getOfferPayload().setReserveTxKeyImages(reservedKeyImages); // reset offer funding address entry if unused - List inputs = model.getXmrWalletService().getOutputs(reservedKeyImages); - boolean usesFundingEntry = false; - for (MoneroOutputWallet input : inputs) { - if (input.getAccountIndex() == 0 && input.getSubaddressIndex() == fundingEntry.getSubaddressIndex()) { - usesFundingEntry = true; - break; + if (fundingEntry != null) { + List inputs = model.getXmrWalletService().getOutputs(reservedKeyImages); + boolean usesFundingEntry = false; + for (MoneroOutputWallet input : inputs) { + if (input.getAccountIndex() == 0 && input.getSubaddressIndex() == fundingEntry.getSubaddressIndex()) { + usesFundingEntry = true; + break; + } } + if (!usesFundingEntry) model.getXmrWalletService().swapAddressEntryToAvailable(offer.getId(), XmrAddressEntry.Context.OFFER_FUNDING); } - if (!usesFundingEntry) model.getXmrWalletService().swapAddressEntryToAvailable(offer.getId(), XmrAddressEntry.Context.OFFER_FUNDING); } complete(); } catch (Throwable t) {