Nullptr protection.

This commit is contained in:
Jeff Young 2024-02-03 19:56:31 +00:00
parent 36275bcbc5
commit 5379a1d863
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,8 @@ ZONE::ZONE( BOARD_ITEM_CONTAINER* aParent ) :
m_hatchThickness = m_ZoneMinThickness;
m_hatchGap = m_ZoneMinThickness;
aParent->GetBoard()->GetDesignSettings().GetDefaultZoneSettings().ExportSetting( *this );
if( aParent->GetBoard() )
aParent->GetBoard()->GetDesignSettings().GetDefaultZoneSettings().ExportSetting( *this );
m_needRefill = false; // True only after edits.
}