Index: Ringtoets/Common/src/Ringtoets.Common.Service/DesignWaterLevelCalculationService.cs
===================================================================
diff -u -rc7cfd69ca9c95a190e7cc4d0f8184d0c69bbc1c2 -rfb4203c09eced36c5c1f67b877405f66bbadc428
--- Ringtoets/Common/src/Ringtoets.Common.Service/DesignWaterLevelCalculationService.cs (.../DesignWaterLevelCalculationService.cs) (revision c7cfd69ca9c95a190e7cc4d0f8184d0c69bbc1c2)
+++ Ringtoets/Common/src/Ringtoets.Common.Service/DesignWaterLevelCalculationService.cs (.../DesignWaterLevelCalculationService.cs) (revision fb4203c09eced36c5c1f67b877405f66bbadc428)
@@ -207,22 +207,25 @@
/// for which to set the .
/// The to base the
/// to create on.
- private static void SetIllustrationPointsResult(HydraulicBoundaryLocationOutput hydraulicBoundaryLocationOutput,
- HydraRingGeneralResult hydraRingGeneralResult)
+ private void SetIllustrationPointsResult(HydraulicBoundaryLocationOutput hydraulicBoundaryLocationOutput,
+ HydraRingGeneralResult hydraRingGeneralResult)
{
- if (hydraRingGeneralResult != null)
+ if (hydraRingGeneralResult == null)
{
- try
- {
- GeneralResult generalResult =
- GeneralResultConverter.CreateGeneralResultTopLevelSubMechanismIllustrationPoint(hydraRingGeneralResult);
- hydraulicBoundaryLocationOutput.SetIllustrationPoints(generalResult);
- }
- catch (IllustrationPointConversionException e)
- {
- log.Warn(Resources.SetIllustrationPointsResult_Converting_IllustrationPointResult_Failed, e);
- }
+ log.Warn(calculator.IllustrationPointsParserErrorMessage);
+ return;
}
+
+ try
+ {
+ GeneralResult generalResult =
+ GeneralResultConverter.CreateGeneralResultTopLevelSubMechanismIllustrationPoint(hydraRingGeneralResult);
+ hydraulicBoundaryLocationOutput.SetIllustrationPoints(generalResult);
+ }
+ catch (IllustrationPointConversionException e)
+ {
+ log.Warn(Resources.SetIllustrationPointsResult_Converting_IllustrationPointResult_Failed, e);
+ }
}
///