From ce896debc2372934b04736fa87b9cac2307afbd2 Mon Sep 17 00:00:00 2001 From: Jan Krivanek Date: Wed, 22 May 2024 17:19:53 +0200 Subject: [PATCH] Fix nullref --- src/Build/Evaluation/Conditionals/OperatorExpressionNode.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Build/Evaluation/Conditionals/OperatorExpressionNode.cs b/src/Build/Evaluation/Conditionals/OperatorExpressionNode.cs index 34c7194b7a4..55cf768c60b 100644 --- a/src/Build/Evaluation/Conditionals/OperatorExpressionNode.cs +++ b/src/Build/Evaluation/Conditionals/OperatorExpressionNode.cs @@ -45,7 +45,7 @@ internal override string GetExpandedValue(ConditionEvaluator.IConditionEvaluatio /// internal override bool IsUnexpandedValueEmpty() - => LeftChild.IsUnexpandedValueEmpty() && RightChild.IsUnexpandedValueEmpty(); + => (LeftChild?.IsUnexpandedValueEmpty() ?? true) && (RightChild?.IsUnexpandedValueEmpty() ?? true); /// /// Value before any item and property expressions are expanded