Fix a Coverity issue in the net navigator code.

This commit is contained in:
Wayne Stambaugh 2023-06-15 08:00:08 -04:00
parent c90fe84cc1
commit fc1d540036
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ void SCH_EDIT_FRAME::SelectNetNavigatorItem( const NET_NAVIGATOR_ITEM_DATA* aSel
const SCH_ITEM* SCH_EDIT_FRAME::GetSelectedNetNavigatorItem() const
{
if( m_netNavigator )
if( !m_netNavigator )
return nullptr;
wxTreeItemId id = m_netNavigator->GetSelection();