Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/SerializableAssessmentSection.cs =================================================================== diff -u -rd3b53b68914f5cead6eaf7b008168b29b2bd5754 -ra30b67748bed77736f62b6b3c30c82649bb9cf4e --- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/SerializableAssessmentSection.cs (.../SerializableAssessmentSection.cs) (revision d3b53b68914f5cead6eaf7b008168b29b2bd5754) +++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/SerializableAssessmentSection.cs (.../SerializableAssessmentSection.cs) (revision a30b67748bed77736f62b6b3c30c82649bb9cf4e) @@ -48,15 +48,20 @@ /// The unique ID of the assessment section. /// The name of the assessment section. /// The geometry of the reference line. - /// Thrown when any parameter is null. - /// Thrown when contains no elements. + /// Thrown when: + /// + /// contains no elements; + /// is null or empty. + /// + /// + /// Thrown when or is null. public SerializableAssessmentSection(string id, string name, IEnumerable geometry) : this() { - if (id == null) + if (string.IsNullOrEmpty(id)) { - throw new ArgumentNullException(nameof(id)); + throw new ArgumentException($@"'{nameof(id)}' must have a value."); } if (name == null)