Skip to content

Commit

Permalink
Check not null tx
Browse files Browse the repository at this point in the history
  • Loading branch information
sqrrm committed Jun 19, 2019
1 parent abc0909 commit 4243776
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 -> {
Expand Down

0 comments on commit 4243776

Please sign in to comment.