Index: Riskeer/Common/src/Riskeer.Common.Forms/Helpers/TargetProbabilityCalculationsDisplayNameHelper.cs
===================================================================
diff -u -r50003dafe2f6dca20a5cb36b2c437cffe91670e1 -r0041ff12405429f1df2a3ddd3db05728e5bde8f3
--- Riskeer/Common/src/Riskeer.Common.Forms/Helpers/TargetProbabilityCalculationsDisplayNameHelper.cs (.../TargetProbabilityCalculationsDisplayNameHelper.cs) (revision 50003dafe2f6dca20a5cb36b2c437cffe91670e1)
+++ Riskeer/Common/src/Riskeer.Common.Forms/Helpers/TargetProbabilityCalculationsDisplayNameHelper.cs (.../TargetProbabilityCalculationsDisplayNameHelper.cs) (revision 0041ff12405429f1df2a3ddd3db05728e5bde8f3)
@@ -86,22 +86,27 @@
///
/// Gets a unique display name for the provided .
///
- /// The enumeration of all calculations (containing ).
/// The calculations to get the unique display name for.
+ /// The enumeration of all calculations (containing ).
/// The function to obtain the target probability for elements within .
/// A unique calculations display name.
/// Thrown when any input parameter is null.
/// Thrown when is not part of .
public static string GetUniqueDisplayNameForCalculations(T calculations, IEnumerable allCalculations, Func getTargetProbabilityFunc)
{
+ if (calculations == null)
+ {
+ throw new ArgumentNullException(nameof(calculations));
+ }
+
if (allCalculations == null)
{
throw new ArgumentNullException(nameof(allCalculations));
}
- if (calculations == null)
+ if (getTargetProbabilityFunc == null)
{
- throw new ArgumentNullException(nameof(calculations));
+ throw new ArgumentNullException(nameof(getTargetProbabilityFunc));
}
Dictionary