mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Eeschema: protect against a null pointer (can happen with very old schematics)
This commit is contained in:
parent
af8f25875b
commit
985454fa45
@ -213,7 +213,10 @@ DIALOG_FIELD_PROPERTIES::DIALOG_FIELD_PROPERTIES( SCH_BASE_FRAME* aParent, const
|
||||
|
||||
netlist << wxS( "\r" );
|
||||
|
||||
wxArrayString fpFilters = symbol->GetLibSymbolRef()->GetFPFilters();
|
||||
wxArrayString fpFilters;
|
||||
|
||||
if( symbol->GetLibSymbolRef() ) // can be null with very old schematic
|
||||
fpFilters = symbol->GetLibSymbolRef()->GetFPFilters();
|
||||
|
||||
if( !fpFilters.IsEmpty() )
|
||||
netlist << EscapeString( wxJoin( fpFilters, ' ' ), CTX_LINE );
|
||||
|
Loading…
x
Reference in New Issue
Block a user