Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Helpers/FailureMechanismSectionPresentationHelper.cs =================================================================== diff -u -rec3f583fecca7609a3a9266a88950f25f277c5dc -r921e403ff805b7b313dcab1145001106980beed9 --- Ringtoets/Common/src/Ringtoets.Common.Forms/Helpers/FailureMechanismSectionPresentationHelper.cs (.../FailureMechanismSectionPresentationHelper.cs) (revision ec3f583fecca7609a3a9266a88950f25f277c5dc) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Helpers/FailureMechanismSectionPresentationHelper.cs (.../FailureMechanismSectionPresentationHelper.cs) (revision 921e403ff805b7b313dcab1145001106980beed9) @@ -47,9 +47,21 @@ /// /// /// The created presentation objects. + /// Thrown when or + /// is null. public static IEnumerable CreatePresentableFailureMechanismSections(IEnumerable failureMechanismSections, Func createPresentableFailureMechanismSectionFunc) { + if (failureMechanismSections == null) + { + throw new ArgumentNullException(nameof(failureMechanismSections)); + } + + if (createPresentableFailureMechanismSectionFunc == null) + { + throw new ArgumentNullException(nameof(createPresentableFailureMechanismSectionFunc)); + } + double start = 0; foreach (FailureMechanismSection failureMechanismSection in failureMechanismSections)