diff --git a/common/project/net_settings.cpp b/common/project/net_settings.cpp index bfae94ffab..d41614edc8 100644 --- a/common/project/net_settings.cpp +++ b/common/project/net_settings.cpp @@ -382,6 +382,10 @@ std::shared_ptr NET_SETTINGS::GetEffectiveNetClass( const wxString& aN return ii->second; }; + // is forced to be part of the Default netclass. + if( aNetName.IsEmpty() ) + return m_DefaultNetClass; + auto it = m_NetClassLabelAssignments.find( aNetName ); if( it != m_NetClassLabelAssignments.end() )