Skip to content

Commit

Permalink
Merge pull request #192 from swagger-api/npe_test_example_fix
Browse files Browse the repository at this point in the history
fix NPE with testExample property for codegen param object.
  • Loading branch information
HugoMario committed Oct 2, 2018
2 parents a2d2fdc + 1e52f85 commit 22dc490
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3765,6 +3765,10 @@ protected void configureDataForTestTemplate(CodegenOperation codegenOperation) {
.findFirst()
.get();

if (codegenParameter.testExample == null) {
return;
}

path = path.replace(pathParam, codegenParameter.testExample);
}
}
Expand Down

0 comments on commit 22dc490

Please sign in to comment.