Index: Ringtoets/Revetment/src/Ringtoets.Revetment.Data/WaveConditionsInput.cs =================================================================== diff -u -rbab612eeaa5a8f962d0e53325464c8e8d1e35f16 -r14c7697f5bec8544f673df9a0205abffa0c145b9 --- Ringtoets/Revetment/src/Ringtoets.Revetment.Data/WaveConditionsInput.cs (.../WaveConditionsInput.cs) (revision bab612eeaa5a8f962d0e53325464c8e8d1e35f16) +++ Ringtoets/Revetment/src/Ringtoets.Revetment.Data/WaveConditionsInput.cs (.../WaveConditionsInput.cs) (revision 14c7697f5bec8544f673df9a0205abffa0c145b9) @@ -150,8 +150,9 @@ } /// - /// Gets or sets the step size for wave conditions calculations. + /// Gets or sets the step size used for determining . /// + /// Thrown when value is smaller than or equal to 0. public RoundedDouble StepSize { get @@ -160,7 +161,14 @@ } set { - stepSize = value.ToPrecision(stepSize.NumberOfDecimalPlaces); + var newStepSize = value.ToPrecision(stepSize.NumberOfDecimalPlaces); + + if (!double.IsNaN(newStepSize) && newStepSize <= 0) + { + throw new ArgumentOutOfRangeException(null, Resources.WaveConditionsInput_StepSize_Should_be_greater_than_zero); + } + + stepSize = newStepSize; } }