Closed
Description
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.:
protected String bodyContent(String prefix, ChangedContent changedContent){
if (changedContent == null) {
return ""; // or prefix?
}
...
}