Avoid accessing nullpointer in BaseIndex::GetSummary()
This commit is contained in:
1 parent
6abe9f5b11
commit
00d57ff768
1 file changed
+1
-1
+1
-1
@@ -366,6 +366,6 @@ IndexSummary BaseIndex::GetSummary() const
|
|||||||
IndexSummary summary{};
|
IndexSummary summary{};
|
||||||
summary.name = GetName();
|
summary.name = GetName();
|
||||||
summary.synced = m_synced;
|
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;
|
return summary;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user