Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/PipingCalculationOutputEntityReadExtensions.cs =================================================================== diff -u -r3fb0df0ed6e64657154700ee7706e035d5bf99f5 -r5276b5e82afd56701abd55dd098651fb9ac504e2 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/PipingCalculationOutputEntityReadExtensions.cs (.../PipingCalculationOutputEntityReadExtensions.cs) (revision 3fb0df0ed6e64657154700ee7706e035d5bf99f5) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/PipingCalculationOutputEntityReadExtensions.cs (.../PipingCalculationOutputEntityReadExtensions.cs) (revision 5276b5e82afd56701abd55dd098651fb9ac504e2) @@ -19,6 +19,7 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using Application.Ringtoets.Storage.DbContext; using Ringtoets.Piping.Data; @@ -31,14 +32,20 @@ internal static class PipingCalculationOutputEntityReadExtensions { /// - /// Read the and use the information to + /// Read the and use the information to /// construct a . /// /// The to create /// for. /// A new . + /// Thrown when + /// is null. internal static PipingOutput Read(this PipingCalculationOutputEntity entity) { + if (entity == null) + { + throw new ArgumentNullException(nameof(entity)); + } return new PipingOutput(new PipingOutput.ConstructionProperties { UpliftZValue = entity.UpliftZValue.ToNullAsNaN(),