Allow GetSymbolStats() to fail gracefully.

This commit is contained in:
Bartosz Taudul
2020-02-29 18:41:07 +01:00
parent 9b53792f20
commit 39361f71a1
3 changed files with 11 additions and 5 deletions

View File

@@ -13292,7 +13292,7 @@ void View::DrawAnnotationList()
void View::DrawSampleParents()
{
const auto symbol = m_worker.GetSymbolData( m_sampleParents.symAddr );
const auto stats = m_worker.GetSymbolStats( m_sampleParents.symAddr );
const auto stats = *m_worker.GetSymbolStats( m_sampleParents.symAddr );
assert( !stats.parents.empty() );
bool show = true;