Fix a Coverity issue in the net navigator code.
This commit is contained in:
parent
c90fe84cc1
commit
fc1d540036
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue