Skip to content
This repository was archived by the owner on Aug 23, 2020. It is now read-only.

Commit 0a397ef

Browse files
author
Brord van Wierst
committed
Fixed nullpointer when receiving requested tx after pruned state confirmed
1 parent ab0aff5 commit 0a397ef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/iota/iri/service/transactionpruning/impl/PrunedTransactionVerifierImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public boolean isPruned(Hash hash) throws PrunedTransactionException{
8484
public void submitTransaction(TransactionViewModel receivedTransactionViewModel) throws PrunedTransactionException {
8585
Hash parent = receivedTransactionViewModel.getHash();
8686
Hash child = getChildForParent(parent);
87-
if (isPruned(child)) {
87+
if (child == null || isPruned(child)) {
8888
// We succeeded in the meantime.
8989
return;
9090
}
@@ -95,7 +95,7 @@ public void submitTransaction(TransactionViewModel receivedTransactionViewModel)
9595

9696
if (isPruned(child)) {
9797
// We succeeded in the meantime.
98-
clean(child);
98+
parents.remove(child);
9999
return;
100100
}
101101

0 commit comments

Comments
 (0)