diff --git a/src/Bicep.Core/Intermediate/ExpressionBuilder.cs b/src/Bicep.Core/Intermediate/ExpressionBuilder.cs index 3936b7bdf0c..628a6ffc765 100644 --- a/src/Bicep.Core/Intermediate/ExpressionBuilder.cs +++ b/src/Bicep.Core/Intermediate/ExpressionBuilder.cs @@ -741,7 +741,10 @@ void completePreviousChunk() } else { - currentChunk.Add(ConvertWithoutLowering(arrayItem)); + if (arrayItem.Value is not null) + { + currentChunk.Add(ConvertWithoutLowering(arrayItem.Value)); + } } } }