Fix nullptr crash.

This commit is contained in:
Jeff Young 2020-11-24 14:13:03 +00:00
parent dbc7831d0c
commit 44850e9409
1 changed files with 1 additions and 1 deletions

View File

@ -2077,7 +2077,7 @@ CONNECTION_SUBGRAPH* CONNECTION_GRAPH::GetSubgraphForItem( SCH_ITEM* aItem )
auto it = m_item_to_subgraph_map.find( aItem );
CONNECTION_SUBGRAPH* ret = it != m_item_to_subgraph_map.end() ? it->second : nullptr;
while( ret->m_absorbed )
while( ret && ret->m_absorbed )
ret = ret->m_absorbed_by;
return ret;