Index: Ringtoets/Common/src/Ringtoets.Common.IO/SoilProfile/SoilProfile1D.cs =================================================================== diff -u -rbe4427a66ef77dfa213048b0a823824ea679bce3 -r4d2b702d8a5e4570ee53fa499f8f5fa196acdb98 --- Ringtoets/Common/src/Ringtoets.Common.IO/SoilProfile/SoilProfile1D.cs (.../SoilProfile1D.cs) (revision be4427a66ef77dfa213048b0a823824ea679bce3) +++ Ringtoets/Common/src/Ringtoets.Common.IO/SoilProfile/SoilProfile1D.cs (.../SoilProfile1D.cs) (revision 4d2b702d8a5e4570ee53fa499f8f5fa196acdb98) @@ -40,7 +40,8 @@ /// The name of the profile. /// The bottom level of the profile. /// The collection of layers that should be part of the profile. - /// Thrown when is null. + /// Thrown when or + /// is null. /// Thrown when: /// /// contains no layers @@ -50,6 +51,11 @@ /// public SoilProfile1D(long id, string name, double bottom, IEnumerable layers) { + if (name == null) + { + throw new ArgumentNullException(nameof(name)); + } + Id = id; Name = name; Bottom = bottom;