Skip to content

Commit

Permalink
Fix bug caused by smithy test case params not being nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
0marperez committed Oct 9, 2024
1 parent 434eb22 commit 2f47ed3
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,10 @@ class SmokeTestsRunnerGenerator(
writer.withBlock(".#T { client ->", "}", RuntimeTypes.Core.IO.use) {
withBlock("client.#L(", ")", operation.defaultName()) {
withBlock("#L {", "}", operationSymbol) {
testCase.params.get().members.forEach { member ->
write("#L = #L", member.key.value.toCamelCase(), member.value.format())
if (testCase.params.isPresent) {
testCase.params.get().members.forEach { member ->
write("#L = #L", member.key.value.toCamelCase(), member.value.format())
}
}
}
}
Expand Down

0 comments on commit 2f47ed3

Please sign in to comment.