Skip to content

Commit be071c2

Browse files
committed
Wallet potential crash fix on rollback
1 parent 4b991ed commit be071c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wallet/core/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ namespace beam::wallet
10591059
{
10601060
// Reconstruct tx with reset parameters and add it to the active list
10611061
auto pTx = ConstructTransaction(tx.m_txId, tx.m_txType);
1062-
if (pTx->Rollback(sTip.m_Height))
1062+
if (pTx && pTx->Rollback(sTip.m_Height))
10631063
{
10641064
m_ActiveTransactions.emplace(tx.m_txId, pTx);
10651065
UpdateOnSynced(pTx);

0 commit comments

Comments
 (0)