You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When specifiying a Markdown file output and only changing the description under a requestBody the application fails with a NullPointerException in this bit of code
if (operation.resultRequestBody().isDifferent()) {
details
.append(titleH5("Request:"))
.append(bodyContent(operation.getRequestBody().getContent()));
}
It recognises the operation to have changed but the content of the getRequestBody is null in this scenario.
A potential fix is to have a null check in the bodyContent method i.e.:
protectedStringbodyContent(Stringprefix, ChangedContentchangedContent){
if (changedContent == null) {
return""; // or prefix?
}
...
}
The text was updated successfully, but these errors were encountered:
When specifiying a Markdown file output and only changing the description under a requestBody the application fails with a NullPointerException in this bit of code
It recognises the operation to have changed but the content of the getRequestBody is null in this scenario.
A potential fix is to have a null check in the bodyContent method i.e.:
The text was updated successfully, but these errors were encountered: