Index: Ringtoets/Integration/src/Ringtoets.Integration.Service/DesignWaterLevelCalculationActivity.cs =================================================================== diff -u -rc45538da49b7940b722e1f12b95d16beb4ee8206 -rd207738be4ce6f50f4e3e00839ea433acea10bbd --- Ringtoets/Integration/src/Ringtoets.Integration.Service/DesignWaterLevelCalculationActivity.cs (.../DesignWaterLevelCalculationActivity.cs) (revision c45538da49b7940b722e1f12b95d16beb4ee8206) +++ Ringtoets/Integration/src/Ringtoets.Integration.Service/DesignWaterLevelCalculationActivity.cs (.../DesignWaterLevelCalculationActivity.cs) (revision d207738be4ce6f50f4e3e00839ea433acea10bbd) @@ -19,6 +19,7 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using Core.Common.Base.Service; using Ringtoets.Common.Data.AssessmentSection; using Ringtoets.HydraRing.Calculation.Activities; @@ -49,8 +50,18 @@ /// /// The data which is used for the calculation. /// The to perform the calculation for. + /// Thrown when any input argument is null. public DesignWaterLevelCalculationActivity(IAssessmentSection assessmentSection, HydraulicBoundaryLocation hydraulicBoundaryLocation) { + if (assessmentSection == null) + { + throw new ArgumentNullException("assessmentSection"); + } + if (hydraulicBoundaryLocation == null) + { + throw new ArgumentNullException("hydraulicBoundaryLocation"); + } + this.assessmentSection = assessmentSection; this.hydraulicBoundaryLocation = hydraulicBoundaryLocation; }