Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/HeightStructures/HeightStructuresFailureMechanismMetaEntityReadExtensions.cs
===================================================================
diff -u -r401ea38da560543cd91415c326b9463976b2e80a -rfbe227cf3a6743302f63c1bd3281feda0273192c
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/HeightStructures/HeightStructuresFailureMechanismMetaEntityReadExtensions.cs (.../HeightStructuresFailureMechanismMetaEntityReadExtensions.cs) (revision 401ea38da560543cd91415c326b9463976b2e80a)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/HeightStructures/HeightStructuresFailureMechanismMetaEntityReadExtensions.cs (.../HeightStructuresFailureMechanismMetaEntityReadExtensions.cs) (revision fbe227cf3a6743302f63c1bd3281feda0273192c)
@@ -19,6 +19,7 @@
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
+using System;
using Application.Ringtoets.Storage.DbContext;
using Core.Common.Base.Data;
using Ringtoets.HeightStructures.Data;
@@ -38,8 +39,14 @@
/// The
/// to create for.
/// A new .
+ /// Thrown when is null.
internal static GeneralHeightStructuresInput Read(this HeightStructuresFailureMechanismMetaEntity entity)
{
+ if (entity == null)
+ {
+ throw new ArgumentNullException(nameof(entity));
+ }
+
return new GeneralHeightStructuresInput
{
N = (RoundedDouble) entity.N