mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02: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
Add a link
Reference in a new issue