Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/GrassCoverErosionInwards/DikeProfileEntityReadExtensions.cs =================================================================== diff -u -raf81664b5c0cb1af94c61530adbb6cd24fd5229f -rc2bf0666539fa1a781c6d5d633ac292fa4fe2bd4 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/GrassCoverErosionInwards/DikeProfileEntityReadExtensions.cs (.../DikeProfileEntityReadExtensions.cs) (revision af81664b5c0cb1af94c61530adbb6cd24fd5229f) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/GrassCoverErosionInwards/DikeProfileEntityReadExtensions.cs (.../DikeProfileEntityReadExtensions.cs) (revision c2bf0666539fa1a781c6d5d633ac292fa4fe2bd4) @@ -20,12 +20,9 @@ // All rights reserved. using System; - using Application.Ringtoets.Storage.DbContext; using Application.Ringtoets.Storage.Serializers; - using Core.Common.Base.Geometry; - using Ringtoets.GrassCoverErosionInwards.Data; namespace Application.Ringtoets.Storage.Read.GrassCoverErosionInwards @@ -81,11 +78,11 @@ private static BreakWater CreateBreakWater(DikeProfileEntity entity) { - if (entity.BreakWaterType == null) + if (entity.BreakWaterType == null || entity.BreakWaterHeight == null) { return null; } - return new BreakWater((BreakWaterType)entity.BreakWaterType, entity.BreakWaterHeight.Value); + return new BreakWater((BreakWaterType) entity.BreakWaterType, entity.BreakWaterHeight.Value); } } } \ No newline at end of file