Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Parsers/ReliabilityIndexCalculationParser.cs =================================================================== diff -u -r02670d8c9fceeaea5f829937a2eb269f3488c6b1 -r1b0460d5f81926d0366ab10e4b0e9f6d75809c71 --- Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Parsers/ReliabilityIndexCalculationParser.cs (.../ReliabilityIndexCalculationParser.cs) (revision 02670d8c9fceeaea5f829937a2eb269f3488c6b1) +++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Parsers/ReliabilityIndexCalculationParser.cs (.../ReliabilityIndexCalculationParser.cs) (revision 1b0460d5f81926d0366ab10e4b0e9f6d75809c71) @@ -35,10 +35,9 @@ public class ReliabilityIndexCalculationParser : IHydraRingFileParser { /// - /// Gets the output of a successful parse of the output file. + /// Gets a + /// corresponding to the section id if executed successfully; or null otherwise. /// - /// A corresponding to the section id if executed - /// successfully; or null otherwise. public ReliabilityIndexCalculationOutput Output { get; private set; } public void Parse(string workingDirectory, int sectionId) @@ -56,16 +55,14 @@ if (results.Any() && results.ElementAt(0) == sectionId.ToString()) { - Output = new ReliabilityIndexCalculationOutput( - GetDoubleValueFromElement(results.ElementAt(results.Length - 2)), - GetDoubleValueFromElement(results.ElementAt(results.Length - 1))); + Output = new ReliabilityIndexCalculationOutput(GetDoubleValueFromElement(results.ElementAt(results.Length - 2)), GetDoubleValueFromElement(results.ElementAt(results.Length - 1))); } } } } catch { - // ignored + throw new HydraRingFileParserException(); } }