Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/StructureCalculationEntityReadExtensions.cs =================================================================== diff -u -r91764687fd1e853385a63f56160f38cb4527c7a8 -r764b136687c9fa77c566e120f4ca7256c2ca2b93 --- 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 764b136687c9fa77c566e120f4ca7256c2ca2b93) @@ -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);