Skip to content

Commit

Permalink
Merge pull request #2903 from sqrrm/better-null-tx-handling
Browse files Browse the repository at this point in the history
Check not null tx
  • Loading branch information
ripcurlx authored Jun 19, 2019
2 parents 386209b + 4243776 commit e52cff8
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 e52cff8

Please sign in to comment.