diff --git a/pcbnew/pcb_base_edit_frame.cpp b/pcbnew/pcb_base_edit_frame.cpp index b1314b83a2..2062ab3ab4 100644 --- a/pcbnew/pcb_base_edit_frame.cpp +++ b/pcbnew/pcb_base_edit_frame.cpp @@ -228,5 +228,6 @@ void PCB_BASE_EDIT_FRAME::handleActivateEvent( wxActivateEvent& aEvent ) EDA_DRAW_FRAME::handleActivateEvent( aEvent ); // The text in the collapsible pane headers need to be updated - m_appearancePanel->RefreshCollapsiblePanes(); + if( m_appearancePanel ) + m_appearancePanel->RefreshCollapsiblePanes(); }