Skip to content

Commit 5676488

Browse files
authored
csharp-null-ref-fix (#45)
1 parent 958b09e commit 5676488

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/generators/client/CSharpClientGenerator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ ${controllerPropsCtor}
9090
? ''
9191
: '?' + controllerPath.queryParams.map(x => {
9292
if (this.getPropDesc(x.schema!).includes('[]')) {
93-
return `{string.Join("&", q${capitalize(x.name)}.Select(x => $"${x.name}={x}"))}`;
93+
return `{string.Join("&", q${capitalize(x.name)}?.Select(x => $"${x.name}={x}"))}`;
9494
}
9595
return `${x.name}={q${capitalize(x.name)}}`;
9696
}).join('&');

0 commit comments

Comments
 (0)