Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/StructureCalculationEntityReadExtensions.cs =================================================================== diff -u -r91764687fd1e853385a63f56160f38cb4527c7a8 -rfbe227cf3a6743302f63c1bd3281feda0273192c --- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/StructureCalculationEntityReadExtensions.cs (.../StructureCalculationEntityReadExtensions.cs) (revision 91764687fd1e853385a63f56160f38cb4527c7a8) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/StructureCalculationEntityReadExtensions.cs (.../StructureCalculationEntityReadExtensions.cs) (revision fbe227cf3a6743302f63c1bd3281feda0273192c) @@ -44,14 +44,15 @@ /// The object keeping track of read operations. /// Thrown when /// or is null. - public static void Read(this IStructuresCalculationEntity entity, - StructuresInputBase inputToUpdate, - ReadConversionCollector collector) where T : StructureBase + internal static void Read(this IStructuresCalculationEntity entity, + StructuresInputBase inputToUpdate, + ReadConversionCollector collector) where T : StructureBase { if (inputToUpdate == null) { throw new ArgumentNullException(nameof(inputToUpdate)); } + if (collector == null) { throw new ArgumentNullException(nameof(collector)); @@ -61,6 +62,7 @@ { inputToUpdate.ForeshoreProfile = entity.ForeshoreProfileEntity.Read(collector); } + if (entity.HydraulicLocationEntity != null) { inputToUpdate.HydraulicBoundaryLocation = entity.HydraulicLocationEntity.Read(collector);