Fix nullptr exception in cadstar sch plugin

Fixes KICAD-30E
This commit is contained in:
Roberto Fernandez Bautista 2023-08-28 20:49:18 +02:00
parent ae05bf723e
commit 18e6fa6a53
1 changed files with 2 additions and 2 deletions

View File

@ -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" );
}