diff --git a/pcbnew/pcb_io/easyeda/pcb_io_easyeda_parser.cpp b/pcbnew/pcb_io/easyeda/pcb_io_easyeda_parser.cpp index 3889319d8a..316029b425 100644 --- a/pcbnew/pcb_io/easyeda/pcb_io_easyeda_parser.cpp +++ b/pcbnew/pcb_io/easyeda/pcb_io_easyeda_parser.cpp @@ -790,11 +790,11 @@ void PCB_IO_EASYEDA_PARSER::ParseToBoardItemContainer( wxString textType = arr[1]; bool add = false; - if( textType == wxS( "P" ) ) + if( footprint && textType == wxS( "P" ) ) { text = footprint->GetField( REFERENCE_FIELD ); } - else if( textType == wxS( "N" ) ) + else if( footprint && textType == wxS( "N" ) ) { text = footprint->GetField( VALUE_FIELD ); }