Check for null parent in GetFullText

Fixes #4360
This commit is contained in:
Jon Evans 2020-05-07 20:31:06 -04:00
parent 104bfbfbd7
commit 302646cb3c
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ wxString LIB_FIELD::GetFullText( int unit ) const
wxString text = GetText();
text << wxT( "?" );
if( GetParent()->IsMulti() )
if( GetParent() && GetParent()->IsMulti() )
text << LIB_PART::SubReference( unit );
return text;