Skip to content

Commit

Permalink
Code review commit
Browse files Browse the repository at this point in the history
  • Loading branch information
manfred-brands committed Sep 16, 2023
1 parent 1038328 commit abff4d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ private static bool IsValidatedNotNullByExpression(string possibleNullReference,
else if (member == NUnitFrameworkConstants.NameOfMultiple)
{
// Look up into the actual asserted parameter
if (argumentList.Arguments.First().Expression is AnonymousFunctionExpressionSyntax anonymousFunction)
if (argumentList.Arguments.FirstOrDefault()?.Expression is AnonymousFunctionExpressionSyntax anonymousFunction)
{
if (anonymousFunction.Block is not null)
{
Expand Down

0 comments on commit abff4d3

Please sign in to comment.