mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 09:20:04 +01:00
KeyTimeCoinSelector: check for parent is non-null in isConfirmed()
This commit is contained in:
parent
af7c903df7
commit
bbe7f088ca
1 changed files with 2 additions and 1 deletions
|
@ -97,6 +97,7 @@ public class KeyTimeCoinSelector implements CoinSelector {
|
|||
}
|
||||
|
||||
private boolean isConfirmed(TransactionOutput output) {
|
||||
return output.getParentTransaction().getConfidence().getConfidenceType().equals(TransactionConfidence.ConfidenceType.BUILDING);
|
||||
Transaction parent = Objects.requireNonNull(output.getParentTransaction());
|
||||
return parent.getConfidence().getConfidenceType().equals(TransactionConfidence.ConfidenceType.BUILDING);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue