Skip to content

Commit 7a72271

Browse files
committed
[7389] Generate service with -l jaxrs-spec fails
1 parent c20b61b commit 7a72271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractJavaJAXRSServerCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public void preprocessOpenAPI(OpenAPI openAPI) {
104104
PathItem pathItem = openAPI.getPaths().get(pathname);
105105
final Operation[] operations = ModelUtils.createOperationArray(pathItem);
106106
for (Operation operation : operations) {
107-
if (operation.getTags() != null) {
107+
if (operation != null && operation.getTags() != null) {
108108
List<Map<String, String>> tags = new ArrayList<Map<String, String>>();
109109
for (String tag : operation.getTags()) {
110110
Map<String, String> value = new HashMap<String, String>();

0 commit comments

Comments
 (0)