From 18e6fa6a53efc826144f41c01c4b1345f47bfce7 Mon Sep 17 00:00:00 2001 From: Roberto Fernandez Bautista Date: Mon, 28 Aug 2023 20:49:18 +0200 Subject: [PATCH] Fix nullptr exception in cadstar sch plugin Fixes KICAD-30E --- eeschema/sch_plugins/cadstar/cadstar_sch_archive_plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/sch_plugins/cadstar/cadstar_sch_archive_plugin.cpp b/eeschema/sch_plugins/cadstar/cadstar_sch_archive_plugin.cpp index d1eef50f8f..2f03564228 100644 --- a/eeschema/sch_plugins/cadstar/cadstar_sch_archive_plugin.cpp +++ b/eeschema/sch_plugins/cadstar/cadstar_sch_archive_plugin.cpp @@ -259,7 +259,7 @@ void CADSTAR_SCH_ARCHIVE_PLUGIN::ensureLoadedLibrary( const wxString& aLibraryPa wxFileName csafn; wxString fplibname = "cadstarpcblib"; - if( aProperties->count( "csa" ) ) + if( aProperties && aProperties->count( "csa" ) ) { csafn = wxFileName( aProperties->at( "csa" ) ); @@ -281,7 +281,7 @@ void CADSTAR_SCH_ARCHIVE_PLUGIN::ensureLoadedLibrary( const wxString& aLibraryPa csafn.SetExt( "csa" ); } - if( aProperties->count( "fplib" ) ) + if( aProperties && aProperties->count( "fplib" ) ) { fplibname = aProperties->at( "fplib" ); }