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

Commit

Permalink
Fixed nullpointer when receiving requested tx after pruned state conf…
Browse files Browse the repository at this point in the history
…irmed
  • Loading branch information
Brord van Wierst committed Apr 25, 2019
1 parent 5cc7114 commit 2394131
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public boolean isPruned(Hash hash) throws PrunedTransactionException{
public void submitTransaction(TransactionViewModel receivedTransactionViewModel) throws PrunedTransactionException {
Hash parent = receivedTransactionViewModel.getHash();
Hash child = getChildForParent(parent);
if (isPruned(child)) {
if (child == null || isPruned(child)) {
// We succeeded in the meantime.
return;
}
Expand All @@ -95,7 +95,7 @@ public void submitTransaction(TransactionViewModel receivedTransactionViewModel)

if (isPruned(child)) {
// We succeeded in the meantime.
clean(child);
parents.remove(child);
return;
}

Expand Down

0 comments on commit 2394131

Please sign in to comment.