Skip to content

Commit

Permalink
Fix possible 'System.NullReferenceException' in PredicateLambdaExpres…
Browse files Browse the repository at this point in the history
…sionValueFormatter.
  • Loading branch information
vbreuss committed Nov 12, 2023
1 parent 6549483 commit babd362
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ private sealed class AndOperatorChainExtractor : ExpressionVisitor

public override Expression Visit(Expression node)
{
if (node == null)
{
return null;
}

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

0 comments on commit babd362

Please sign in to comment.