Index: Ringtoets/Common/src/Ringtoets.Common.Utils/SectionSegments.cs =================================================================== diff -u -r721d6f7ac6513e2219ff9bc652f3d6059061a009 -r38600213ce6ca43c1819c81dd95c8ce786650ac3 --- Ringtoets/Common/src/Ringtoets.Common.Utils/SectionSegments.cs (.../SectionSegments.cs) (revision 721d6f7ac6513e2219ff9bc652f3d6059061a009) +++ Ringtoets/Common/src/Ringtoets.Common.Utils/SectionSegments.cs (.../SectionSegments.cs) (revision 38600213ce6ca43c1819c81dd95c8ce786650ac3) @@ -19,6 +19,7 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using System.Collections.Generic; using System.Linq; using Core.Common.Base.Geometry; @@ -38,8 +39,13 @@ /// /// The whose /// this class represents as a collection of objects. + /// Thrown when is null. public SectionSegments(FailureMechanismSection section) { + if (section == null) + { + throw new ArgumentNullException("section"); + } Section = section; segments = Math2D.ConvertLinePointsToLineSegments(section.Points); }