Skip to content

Commit

Permalink
fix NPE for scala gatling generator (#1479)
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 committed Nov 19, 2018
1 parent 0e693cd commit f58bd6d
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -239,6 +239,11 @@ public void preprocessOpenAPI(OpenAPI openAPI) {
continue;
}
for (Operation operation : path.readOperations()) {

if (operation.getExtensions() == null) {
operation.setExtensions(new HashMap());
}

if (!operation.getExtensions().keySet().contains("x-gatling-path")) {
if (pathname.contains("{")) {
String gatlingPath = pathname.replaceAll("\\{", "\\$\\{");
Expand Down

0 comments on commit f58bd6d

Please sign in to comment.