From 21103924f4944ed7d1ff6eb07113e802718adef5 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 13 Apr 2023 22:16:56 +0300 Subject: [PATCH] Don't crash when canceling initial setup in Manage Footprint Libraries --- common/tool/common_control.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/tool/common_control.cpp b/common/tool/common_control.cpp index addf9edd05..e0493aabbc 100644 --- a/common/tool/common_control.cpp +++ b/common/tool/common_control.cpp @@ -130,7 +130,9 @@ int COMMON_CONTROL::ShowLibraryTable( const TOOL_EVENT& aEvent ) try // Pcb frame was not available, try to start it { KIFACE* kiface = m_frame->Kiway().KiFACE( KIWAY::FACE_PCB ); - kiface->CreateKiWindow( m_frame, DIALOG_PCB_LIBRARY_TABLE, &m_frame->Kiway() ); + + if( kiface ) + kiface->CreateKiWindow( m_frame, DIALOG_PCB_LIBRARY_TABLE, &m_frame->Kiway() ); } catch( ... ) {