Index: Ringtoets/Common/src/Ringtoets.Common.Utils/SectionSegmentsHelper.cs =================================================================== diff -u -ra8966007fe729fc5417ce56aee516ab5d84d4b3d -rb2f617ad0d8d6457422a569685763b9718740560 --- Ringtoets/Common/src/Ringtoets.Common.Utils/SectionSegmentsHelper.cs (.../SectionSegmentsHelper.cs) (revision a8966007fe729fc5417ce56aee516ab5d84d4b3d) +++ Ringtoets/Common/src/Ringtoets.Common.Utils/SectionSegmentsHelper.cs (.../SectionSegmentsHelper.cs) (revision b2f617ad0d8d6457422a569685763b9718740560) @@ -28,7 +28,7 @@ namespace Ringtoets.Common.Utils { /// - /// Class that holds helper methods for + /// Class that holds helper methods for . /// public static class SectionSegmentsHelper { @@ -38,8 +38,13 @@ /// The of /// to create for. /// An array of . + /// Thrown when is null. public static SectionSegments[] MakeSectionSegments(IEnumerable sectionResults) { + if (sectionResults == null) + { + throw new ArgumentNullException("sectionResults"); + } return sectionResults.Select(s => new SectionSegments(s)).ToArray(); } @@ -48,7 +53,7 @@ /// /// The segment sections to get the from. /// The to get the for. - /// The that corresponds to the given . + /// The that corresponds to the given or null if none found. /// Thrown when any paramater is null. public static FailureMechanismSection GetSectionForPoint(IEnumerable sectionSegmentsCollection, Point2D point) {