Skip to content

Commit 2b2ac83

Browse files
committed
fix# 322
1 parent 4cad5f0 commit 2b2ac83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CSharp.lua/LuaSyntaxNodeTransform.Helper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ private LuaExpressionSyntax InternalBuildCodeTemplateExpression(
349349
}
350350
} else {
351351
if (int.TryParse(key, out int argumentIndex)) {
352-
var argument = arguments.ElementAtOrDefault(argumentIndex);
352+
var argument = arguments?.ElementAtOrDefault(argumentIndex);
353353
if (argument != null) {
354354
var argumentExpression = argument();
355355
AddCodeTemplateExpression(argumentExpression, comma, codeTemplateExpression);

0 commit comments

Comments
 (0)