Nullptr safety.

This commit is contained in:
Jeff Young 2023-02-25 18:31:07 +00:00
parent bbfc5c272e
commit 77ed53ab25
1 changed files with 1 additions and 1 deletions

View File

@ -1816,7 +1816,7 @@ void SIM_PLOT_FRAME::updateSignalsGrid()
for( int row = 0; row < m_signalsGrid->GetNumberRows(); ++row )
{
if( TRACE* trace = plot->GetTrace( getTraceName( row ) ) )
if( TRACE* trace = plot ? plot->GetTrace( getTraceName( row ) ) : nullptr )
{
m_signalsGrid->SetCellValue( row, COL_SIGNAL_SHOW, wxS( "1" ) );