From 4243776aa5443fed5c5133f64e06434926d94f5a Mon Sep 17 00:00:00 2001 From: sqrrm Date: Wed, 19 Jun 2019 14:32:06 +0200 Subject: [PATCH] Check not null tx --- .../unconfirmed/UnconfirmedBsqChangeOutputListService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/bisq/core/dao/state/unconfirmed/UnconfirmedBsqChangeOutputListService.java b/core/src/main/java/bisq/core/dao/state/unconfirmed/UnconfirmedBsqChangeOutputListService.java index 03d6d8961b6..adeef422e8f 100644 --- a/core/src/main/java/bisq/core/dao/state/unconfirmed/UnconfirmedBsqChangeOutputListService.java +++ b/core/src/main/java/bisq/core/dao/state/unconfirmed/UnconfirmedBsqChangeOutputListService.java @@ -153,7 +153,8 @@ public void onReorganize() { } public void onTransactionConfidenceChanged(Transaction tx) { - if (tx.getConfidence().getConfidenceType() == TransactionConfidence.ConfidenceType.BUILDING) { + if (tx != null && + tx.getConfidence().getConfidenceType() == TransactionConfidence.ConfidenceType.BUILDING) { removeConnectedOutputsOfInputsOfTx(tx); tx.getOutputs().forEach(transactionOutput -> {