From e1840ccbd325d4cf06eae467732af25878f9eef2 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sun, 21 Mar 2021 11:43:24 -0400 Subject: [PATCH] Handle exceptions thrown by footprint library table Fixes https://gitlab.com/kicad/code/kicad/-/issues/7973 --- pcbnew/fp_tree_synchronizing_adapter.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pcbnew/fp_tree_synchronizing_adapter.cpp b/pcbnew/fp_tree_synchronizing_adapter.cpp index d888f6656b..43168b0c74 100644 --- a/pcbnew/fp_tree_synchronizing_adapter.cpp +++ b/pcbnew/fp_tree_synchronizing_adapter.cpp @@ -197,10 +197,17 @@ void FP_TREE_SYNCHRONIZING_ADAPTER::GetValue( wxVariant& aVariant, wxDataViewIte } else if( node->m_Type == LIB_TREE_NODE::LIB ) { - const FP_LIB_TABLE_ROW* lib = GFootprintTable.FindRow( node->m_LibId.GetLibNickname() ); + try + { + const FP_LIB_TABLE_ROW* lib = + GFootprintTable.FindRow( node->m_LibId.GetLibNickname() ); - if( lib ) - node->m_Desc = lib->GetDescr(); + if( lib ) + node->m_Desc = lib->GetDescr(); + } + catch( IO_ERROR& ) + { + } } aVariant = node->m_Desc;