From 5af9d3395ec3db16a48a980579adce954735fe7f Mon Sep 17 00:00:00 2001 From: Tomasz Wlostowski Date: Sun, 3 Dec 2023 23:06:57 +0100 Subject: [PATCH] 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 --- eeschema/dialogs/dialog_symbol_chooser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/dialogs/dialog_symbol_chooser.cpp b/eeschema/dialogs/dialog_symbol_chooser.cpp index 9a44713877..8f13b6a210 100644 --- a/eeschema/dialogs/dialog_symbol_chooser.cpp +++ b/eeschema/dialogs/dialog_symbol_chooser.cpp @@ -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)" ),