mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
Avoid accessing nullpointer in BaseIndex::GetSummary()
This commit is contained in:
parent
6abe9f5b11
commit
00d57ff768
1 changed files with 1 additions and 1 deletions
|
@ -366,6 +366,6 @@ IndexSummary BaseIndex::GetSummary() const
|
|||
IndexSummary summary{};
|
||||
summary.name = GetName();
|
||||
summary.synced = m_synced;
|
||||
summary.best_block_height = m_best_block_index.load()->nHeight;
|
||||
summary.best_block_height = m_best_block_index ? m_best_block_index.load()->nHeight : 0;
|
||||
return summary;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue