Skip to content

Commit

Permalink
Fixed NullReferenceException when creating error message from Express…
Browse files Browse the repository at this point in the history
…ion (#489)
  • Loading branch information
RobertHajbok authored and josephwoodward committed Feb 28, 2018
1 parent 28dd026 commit 29134d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected override Expression VisitParameter(ParameterExpression node)

protected override Expression VisitMember(MemberExpression node)
{
if (node.Expression.NodeType == ExpressionType.Constant)
if (node.Expression?.NodeType == ExpressionType.Constant)
{
Visit(node.Expression);
if (skipDot)
Expand Down

0 comments on commit 29134d4

Please sign in to comment.