mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-18 19:29:19 +00:00
fix NPE for scala gatling generator (#1479)
This commit is contained in:
@@ -239,6 +239,11 @@ public class ScalaGatlingCodegen extends AbstractScalaCodegen implements Codegen
|
||||
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("\\{", "\\$\\{");
|
||||
|
||||
Reference in New Issue
Block a user