Don't search when board is null (during board changes)

(cherry picked from commit 98685b37ff)
This commit is contained in:
Marek Roszko 2023-09-29 07:08:56 -04:00 committed by Mark Roszko
parent ad9f5f4dd7
commit bb579294a0
1 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,9 @@ int FOOTPRINT_SEARCH_HANDLER::Search( const wxString& aQuery )
m_hitlist.clear();
BOARD* board = m_frame->GetBoard();
if( board == nullptr )
return 0;
EDA_SEARCH_DATA frp;
frp.findString = aQuery;
frp.matchMode = EDA_SEARCH_MATCH_MODE::WILDCARD;