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

This commit is contained in:
Marek Roszko 2023-09-29 07:08:56 -04:00
parent 3b28ba83c6
commit 98685b37ff
1 changed files with 3 additions and 0 deletions

View File

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