Protect equality operator against invalid fields
This commit is contained in:
parent
0142b197f7
commit
27bf47d752
|
@ -602,6 +602,9 @@ bool LIB_FIELD::operator==( const LIB_ITEM& aItem ) const
|
|||
if( m_name != field.m_name )
|
||||
return false;
|
||||
|
||||
if( !m_parent || !aItem.GetParent() )
|
||||
return false;
|
||||
|
||||
if( m_parent->m_Uuid != aItem.GetParent()->m_Uuid )
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue