null check for non-schematic symbol

Fixes https://gitlab.com/kicad/code/kicad/issues/8279
This commit is contained in:
Seth Hillbrand 2021-04-22 17:53:21 -07:00
parent 2c2ac39990
commit d934dae21a
1 changed files with 1 additions and 1 deletions

View File

@ -781,7 +781,7 @@ void SCH_COMPONENT::UpdateFields( const SCH_SHEET_PATH* aPath, bool aUpdateStyle
schField->SetTextPos( m_pos + libField->GetTextPos() );
}
if( id == REFERENCE_FIELD )
if( id == REFERENCE_FIELD && aPath )
{
if( aResetOtherFields )
SetRef( aPath, m_part->GetReferenceField().GetText() );