Don't search when board is null (during board changes)
This commit is contained in:
parent
3b28ba83c6
commit
98685b37ff
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue