eeschema: sanitize null pointer dereference of symbol filter. Used to trigger a segfault when mass-changing power symbol library refs

Fixes https://gitlab.com/kicad/code/kicad/issues/16225
This commit is contained in:
Tomasz Wlostowski 2023-12-03 23:06:57 +01:00
parent ef2f72697b
commit 5af9d3395e
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ DIALOG_SYMBOL_CHOOSER::DIALOG_SYMBOL_CHOOSER( SCH_BASE_FRAME* aParent, const LIB
if( aPreselect && aPreselect->IsValid() )
m_chooserPanel->SetPreselect( *aPreselect );
if( aFilter->GetFilterPowerSymbols() )
if( aFilter && aFilter->GetFilterPowerSymbols() )
SetTitle( _( "Choose Power Symbol" ) );
SetTitle( GetTitle() + wxString::Format( _( " (%d items loaded)" ),