Skip to content

Commit

Permalink
Qodana scan: Possible null reference exception
Browse files Browse the repository at this point in the history
  • Loading branch information
IT-VBFK committed Aug 21, 2023
1 parent 41d6574 commit b56b515
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using FluentAssertions.Common;

namespace FluentAssertions.Formatting;

Expand Down Expand Up @@ -134,6 +135,8 @@ private sealed class AndOperatorChainExtractor : ExpressionVisitor

public override Expression Visit(Expression node)
{
Guard.ThrowIfArgumentIsNull(node);

if (node.NodeType == ExpressionType.AndAlso)
{
var binaryExpression = (BinaryExpression)node;
Expand Down

0 comments on commit b56b515

Please sign in to comment.