Nullptr safety (KICAD-AD).

This commit is contained in:
Jeff Young 2025-07-02 23:09:49 -06:00
parent c5dd17a415
commit e0bfc220b4

View File

@ -446,7 +446,10 @@ bool JSON_SETTINGS::SaveToFile( const wxString& aDirectory, bool aForce )
bool modified = false;
for( NESTED_SETTINGS* settings : m_nested_settings )
modified |= settings->SaveToFile();
{
if( settings )
modified |= settings->SaveToFile();
}
modified |= Store();