Fix nullptr exception in cadstar sch plugin
Fixes KICAD-30E
This commit is contained in:
parent
ae05bf723e
commit
18e6fa6a53
|
@ -259,7 +259,7 @@ void CADSTAR_SCH_ARCHIVE_PLUGIN::ensureLoadedLibrary( const wxString& aLibraryPa
|
||||||
wxFileName csafn;
|
wxFileName csafn;
|
||||||
wxString fplibname = "cadstarpcblib";
|
wxString fplibname = "cadstarpcblib";
|
||||||
|
|
||||||
if( aProperties->count( "csa" ) )
|
if( aProperties && aProperties->count( "csa" ) )
|
||||||
{
|
{
|
||||||
csafn = wxFileName( aProperties->at( "csa" ) );
|
csafn = wxFileName( aProperties->at( "csa" ) );
|
||||||
|
|
||||||
|
@ -281,7 +281,7 @@ void CADSTAR_SCH_ARCHIVE_PLUGIN::ensureLoadedLibrary( const wxString& aLibraryPa
|
||||||
csafn.SetExt( "csa" );
|
csafn.SetExt( "csa" );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( aProperties->count( "fplib" ) )
|
if( aProperties && aProperties->count( "fplib" ) )
|
||||||
{
|
{
|
||||||
fplibname = aProperties->at( "fplib" );
|
fplibname = aProperties->at( "fplib" );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue