Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Views/FailureMechanismView.cs =================================================================== diff -u -rc34960143da27c9bfe3f0ce343d8e5d3217ab0e0 -r06e6560689982402f11d25d1baf295a3a4798a82 --- Ringtoets/Common/src/Ringtoets.Common.Forms/Views/FailureMechanismView.cs (.../FailureMechanismView.cs) (revision c34960143da27c9bfe3f0ce343d8e5d3217ab0e0) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Views/FailureMechanismView.cs (.../FailureMechanismView.cs) (revision 06e6560689982402f11d25d1baf295a3a4798a82) @@ -19,6 +19,7 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using System.Collections.Generic; using System.Windows.Forms; using Core.Common.Base; @@ -56,8 +57,15 @@ /// /// Creates a new instance of . /// - public FailureMechanismView() + /// The failure mechanism to show the data for. + /// Thrown when any parameter is null. + public FailureMechanismView(T failureMechanism) { + if (failureMechanism == null) + { + throw new ArgumentNullException(nameof(failureMechanism)); + } + InitializeComponent(); failureMechanismObserver = new Observer(UpdateMapData);