Prevent crash when opening properties of missing symbol

This commit is contained in:
Jon Evans 2023-12-23 17:30:29 -05:00
parent 0db46caeaf
commit 63454d6da9
1 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,8 @@ static wxString netList( SCH_SYMBOL* aSymbol, SCH_SHEET_PATH& aSheetPath )
netlist << wxString::Format( wxS( "%zu\r" ), aSymbol->GetFullPinCount() );
wxCHECK( aSymbol && aSymbol->GetLibSymbolRef(), wxEmptyString );
wxArrayString fpFilters = aSymbol->GetLibSymbolRef()->GetFPFilters();
if( !fpFilters.IsEmpty() )