Index: Ringtoets/Common/src/Ringtoets.Common.Service/Structures/StructuresCalculationServiceBase.cs
===================================================================
diff -u -r9eebc429ea44944d1a010e4f6b28dc4d9c20772f -r470f6846d3dcd6f759a48d838cee8d1b9bbdeac7
--- Ringtoets/Common/src/Ringtoets.Common.Service/Structures/StructuresCalculationServiceBase.cs (.../StructuresCalculationServiceBase.cs) (revision 9eebc429ea44944d1a010e4f6b28dc4d9c20772f)
+++ Ringtoets/Common/src/Ringtoets.Common.Service/Structures/StructuresCalculationServiceBase.cs (.../StructuresCalculationServiceBase.cs) (revision 470f6846d3dcd6f759a48d838cee8d1b9bbdeac7)
@@ -226,22 +226,25 @@
/// for which to set the .
/// The to base the
/// to create on.
- private static void SetIllustrationPointsResult(StructuresOutput structuresOutput,
+ private void SetIllustrationPointsResult(StructuresOutput structuresOutput,
HydraRingGeneralResult hydraRingGeneralResult)
{
- if (hydraRingGeneralResult != null)
+ if (hydraRingGeneralResult == null)
{
- try
- {
- GeneralResult generalResult =
- GeneralResultConverter.CreateGeneralResultTopLevelFaultTreeIllustrationPoint(hydraRingGeneralResult);
- structuresOutput.SetIllustrationPoints(generalResult);
- }
- catch (IllustrationPointConversionException e)
- {
- log.Warn(Resources.SetIllustrationPointsResult_Converting_IllustrationPointResult_Failed, e);
- }
+ log.Warn(calculator.IllustrationPointsParserErrorMessage);
+ return;
}
+
+ try
+ {
+ GeneralResult generalResult =
+ GeneralResultConverter.CreateGeneralResultTopLevelFaultTreeIllustrationPoint(hydraRingGeneralResult);
+ structuresOutput.SetIllustrationPoints(generalResult);
+ }
+ catch (IllustrationPointConversionException e)
+ {
+ log.Warn(Resources.SetIllustrationPointsResult_Converting_IllustrationPointResult_Failed, e);
+ }
}
///