Skip to content

Commit

Permalink
nullptr access fixes for StakeTransactionProcessor
Browse files Browse the repository at this point in the history
  • Loading branch information
LenyKholodov committed Mar 20, 2019
1 parent 1df1885 commit 4d74f2b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cryptonote_core/stake_transaction_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,9 @@ void StakeTransactionProcessor::invoke_update_stakes_handler_impl(uint64_t block
{
try
{
if (!m_storage)
return;

m_on_stakes_update(block_index, m_storage->get_supernode_stakes(block_index));

m_stakes_need_update = false;
Expand Down Expand Up @@ -416,6 +419,9 @@ void StakeTransactionProcessor::invoke_update_blockchain_based_list_handler_impl
{
try
{
if (!m_blockchain_based_list)
return;

if (!m_blockchain_based_list->block_height())
return; //empty blockchain based list

Expand Down

0 comments on commit 4d74f2b

Please sign in to comment.