Fix referencing unknown symbol.

This commit is contained in:
Bartosz Taudul 2021-12-24 02:36:28 +01:00
parent 69c635f8bf
commit acd8a32672
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1463,7 +1463,7 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
ImGui::TextDisabled( "%i.", idx++ ); ImGui::TextDisabled( "%i.", idx++ );
ImGui::SameLine(); ImGui::SameLine();
auto sd = worker.GetSymbolData( v.addr ); auto sd = worker.GetSymbolData( v.addr );
const auto symName = worker.GetString( sd->name ); const auto symName = sd ? worker.GetString( sd->name ) : "[unknown]";
if( v.addr >> 63 == 0 ) if( v.addr >> 63 == 0 )
{ {
ImGui::TextUnformatted( symName ); ImGui::TextUnformatted( symName );