Program: 34753
Project: 34753
Buggy source:
protected void processRequestBody(Parameter requestBodyParameter,Operation operation,Consumes methodConsumes,Consumes classConsumes,List<Parameter> operationParameters,Annotation[] paramAnnotations,Type type,org.eclipse.microprofile.openapi.annotations.parameters.RequestBody methododRequestBody){
  if (operation.getRequestBody() == null) {
    org.eclipse.microprofile.openapi.annotations.parameters.RequestBody requestBodyAnnotation=getRequestBody(Arrays.asList(paramAnnotations));
    if (requestBodyAnnotation == null) {
      if (methododRequestBody != null) {
        requestBodyAnnotation=methododRequestBody;
      }
    }
    if (requestBodyAnnotation != null) {
      Optional<RequestBody> optionalRequestBody=OperationParser.getRequestBody(requestBodyAnnotation,classConsumes,methodConsumes,components);
      if (optionalRequestBody.isPresent()) {
        RequestBody requestBody=optionalRequestBody.get();
        if (StringUtils.isBlank(requestBody.getRef()) && (requestBody.getContent() == null || requestBody.getContent().isEmpty())) {
          if (requestBodyParameter.getSchema() != null) {
            Content content=processContent(requestBody.getContent(),requestBodyParameter.getSchema(),methodConsumes,classConsumes);
            requestBody.setContent(content);
          }
        }
 else         if (StringUtils.isBlank(requestBody.getRef()) && requestBody.getContent() != null && !requestBody.getContent().isEmpty()) {
          if (requestBodyParameter.getSchema() != null) {
            for (            MediaType mediaType : requestBody.getContent().values()) {
              if (mediaType.getSchema() == null) {
                mediaType.setSchema(new SchemaImpl());
              }
              if (mediaType.getSchema().getType() == null) {
                mediaType.getSchema().setType(requestBodyParameter.getSchema().getType());
              }
            }
          }
        }
        operation.setRequestBody(requestBody);
      }
    }
 else {
      boolean isRequestBodyEmpty=true;
      RequestBody requestBody=new RequestBodyImpl();
      if (StringUtils.isNotBlank(requestBodyParameter.getRef())) {
        requestBody.setRef(requestBodyParameter.getRef());
        isRequestBodyEmpty=false;
      }
      if (StringUtils.isNotBlank(requestBodyParameter.getDescription())) {
        requestBody.setDescription(requestBodyParameter.getDescription());
        isRequestBodyEmpty=false;
      }
      if (Boolean.TRUE.equals(requestBodyParameter.getRequired())) {
        requestBody.setRequired(requestBodyParameter.getRequired());
        isRequestBodyEmpty=false;
      }
      if (requestBodyParameter.getSchema() != null) {
        Content content=processContent(null,requestBodyParameter.getSchema(),methodConsumes,classConsumes);
        requestBody.setContent(content);
        isRequestBodyEmpty=false;
      }
      if (!isRequestBodyEmpty) {
        operation.setRequestBody(requestBody);
      }
    }
  }
}

Fixed version (ground truth):
protected void processRequestBody(Parameter requestBodyParameter,Operation operation,Consumes methodConsumes,Consumes classConsumes,Annotation[] paramAnnotations,org.eclipse.microprofile.openapi.annotations.parameters.RequestBody methodRequestBody){
  if (operation.getRequestBody() == null) {
    org.eclipse.microprofile.openapi.annotations.parameters.RequestBody requestBodyAnnotation=null;
    if (paramAnnotations != null) {
      requestBodyAnnotation=getRequestBody(Arrays.asList(paramAnnotations));
    }
    if (requestBodyAnnotation == null && methodRequestBody != null) {
      requestBodyAnnotation=methodRequestBody;
    }
    if (requestBodyAnnotation != null) {
      Optional<RequestBody> optionalRequestBody=OperationParser.getRequestBody(requestBodyAnnotation,classConsumes,methodConsumes,components);
      if (optionalRequestBody.isPresent()) {
        RequestBody requestBody=optionalRequestBody.get();
        if (StringUtils.isBlank(requestBody.getRef()) && (requestBody.getContent() == null || requestBody.getContent().isEmpty())) {
          if (requestBodyParameter.getSchema() != null) {
            Content content=processContent(requestBody.getContent(),requestBodyParameter.getSchema(),methodConsumes,classConsumes);
            requestBody.setContent(content);
          }
        }
 else         if (StringUtils.isBlank(requestBody.getRef()) && requestBody.getContent() != null && !requestBody.getContent().isEmpty()) {
          if (requestBodyParameter.getSchema() != null) {
            for (            MediaType mediaType : requestBody.getContent().values()) {
              if (mediaType.getSchema() == null) {
                mediaType.setSchema(new SchemaImpl());
              }
              if (mediaType.getSchema().getType() == null) {
                mediaType.getSchema().setType(requestBodyParameter.getSchema().getType());
              }
            }
          }
        }
        operation.setRequestBody(requestBody);
      }
    }
 else {
      boolean isRequestBodyEmpty=true;
      RequestBody requestBody=new RequestBodyImpl();
      if (StringUtils.isNotBlank(requestBodyParameter.getRef())) {
        requestBody.setRef(requestBodyParameter.getRef());
        isRequestBodyEmpty=false;
      }
      if (StringUtils.isNotBlank(requestBodyParameter.getDescription())) {
        requestBody.setDescription(requestBodyParameter.getDescription());
        isRequestBodyEmpty=false;
      }
      if (Boolean.TRUE.equals(requestBodyParameter.getRequired())) {
        requestBody.setRequired(requestBodyParameter.getRequired());
        isRequestBodyEmpty=false;
      }
      if (requestBodyParameter.getSchema() != null) {
        Content content=processContent(null,requestBodyParameter.getSchema(),methodConsumes,classConsumes);
        requestBody.setContent(content);
        isRequestBodyEmpty=false;
      }
      if (!isRequestBodyEmpty) {
        operation.setRequestBody(requestBody);
      }
    }
  }
}