mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-20 13:34:42 +01:00
ForwardingService: fix possible NPE in coin selector
This commit is contained in:
parent
7aeffc4de0
commit
e34dd300ec
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ public class ForwardingService implements Closeable {
|
|||
*/
|
||||
static CoinSelector forwardingCoinSelector(Sha256Hash parentTxId) {
|
||||
return (target, candidates) -> candidates.stream()
|
||||
.filter(output -> output.getParentTransactionHash().equals(parentTxId))
|
||||
.filter(output -> output.getParentTransactionHash() != null && output.getParentTransactionHash().equals(parentTxId))
|
||||
.collect(collectingAndThen(toList(), CoinSelection::new));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue