Skip to content

Commit

Permalink
Merge pull request #1817 from ballerina-platform/fix-npe
Browse files Browse the repository at this point in the history
Fix NPE when aligning request body
  • Loading branch information
TharmiganK authored Feb 10, 2025
2 parents 149fa95 + 980e62d commit df00167
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private void processPathItem(PathItem pathItem) {
}

private void processOperationWithInlineObjectSchema(Operation operation) {
if (Objects.nonNull(operation.getRequestBody())) {
if (Objects.nonNull(operation.getRequestBody()) && Objects.nonNull(operation.getRequestBody().getContent())) {
updateInlineObjectInContent(operation.getRequestBody().getContent());
}
processParametersWithInlineObjectSchema(operation.getParameters());
Expand Down

0 comments on commit df00167

Please sign in to comment.