Skip to content

Commit

Permalink
GH-2006 Check for null
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Dec 21, 2023
1 parent c0804e8 commit cb83d8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/state_history_plugin/state_history_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ void state_history_plugin_impl::plugin_startup() {
update_current();
const auto& b = chain.head_block();
const auto& id = chain.head_block_id();
if( chain_state_log && chain_state_log->empty() ) {
if( b && chain_state_log && chain_state_log->empty() ) {
fc_ilog( _log, "Storing initial state on startup, this can take a considerable amount of time" );
store_chain_state( id, *b, b->block_num() );
fc_ilog( _log, "Done storing initial state on startup" );
Expand Down

0 comments on commit cb83d8f

Please sign in to comment.