Browse Source

Null pointer check in FOOTPRINT_LIST::GetInstance()

pull/13/head
Tomasz Włostowski 7 years ago
parent
commit
22300e4f02
  1. 3
      common/footprint_info.cpp

3
common/footprint_info.cpp

@ -138,6 +138,9 @@ FOOTPRINT_LIST* FOOTPRINT_LIST::GetInstance( KIWAY& aKiway )
{
FOOTPRINT_LIST* footprintInfo = get_instance_from_id( aKiway, KIFACE_FOOTPRINT_LIST );
if( ! footprintInfo )
return nullptr;
if( !footprintInfo->GetCount() )
{
wxTextFile footprintInfoCache( aKiway.Prj().GetProjectPath() + "fp-info-cache" );

Loading…
Cancel
Save