Skip to content

Commit

Permalink
wallet: fix error "cannot read property 'toJSON' of null" bug
Browse files Browse the repository at this point in the history
  • Loading branch information
braydonf committed Jun 4, 2020
1 parent 7a786b2 commit 5b6137e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/wallet/txdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,9 @@ class TXDB {

const details = await this.removeRecursive(wtx);

if (!details)
return null;

this.logger.warning('Removed conflict: %h.', tx.hash());

// Emit the _removed_ transaction.
Expand Down

0 comments on commit 5b6137e

Please sign in to comment.