Don't search when board is null (during board changes)
(cherry picked from commit 98685b37ff
)
This commit is contained in:
parent
ad9f5f4dd7
commit
bb579294a0
|
@ -61,6 +61,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;
|
||||||
frp.matchMode = EDA_SEARCH_MATCH_MODE::WILDCARD;
|
frp.matchMode = EDA_SEARCH_MATCH_MODE::WILDCARD;
|
||||||
|
|
Loading…
Reference in New Issue