diff --git a/eeschema/sim/sim_plot_frame.cpp b/eeschema/sim/sim_plot_frame.cpp index 5b17a1dfe9..d285676206 100644 --- a/eeschema/sim/sim_plot_frame.cpp +++ b/eeschema/sim/sim_plot_frame.cpp @@ -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" ) );