From 64e98c8e54f087e45802b664728fb2f94092b0d3 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Wed, 6 Jun 2018 16:59:59 +0200 Subject: [PATCH] Fixed Symbol Library editor crash on start Added a null pointer check missing in 51c7381f Fixes: lp:1775414 * https://bugs.launchpad.net/kicad/+bug/1775414 --- eeschema/widgets/component_tree.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/widgets/component_tree.cpp b/eeschema/widgets/component_tree.cpp index e5cf8f0c77..bf7de2b5ff 100644 --- a/eeschema/widgets/component_tree.cpp +++ b/eeschema/widgets/component_tree.cpp @@ -126,7 +126,8 @@ COMPONENT_TREE::COMPONENT_TREE( wxWindow* aParent, SYMBOL_LIB_TABLE* aSymLibTabl #ifdef __WXGTK__ // Scrollbars must be always enabled to prevent an infinite event loop // more details: http://trac.wxwidgets.org/ticket/18141 - m_details_ctrl->ShowScrollbars( wxSHOW_SB_ALWAYS, wxSHOW_SB_ALWAYS ); + if( m_details_ctrl ) + m_details_ctrl->ShowScrollbars( wxSHOW_SB_ALWAYS, wxSHOW_SB_ALWAYS ); #endif /* __WXGTK__ */ }