Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 640 Bytes

File metadata and controls

13 lines (9 loc) · 640 Bytes

SpringDoc NPE issue with HATEOAS

This is a slight modification of https://github.com/didjoman/Springdoc-String-Schema-returned-mediatype-issue and is for springdoc/springdoc-openapi#2902

Run this to see the issue:

git clone https://github.com/smurf667/springdoc-npe
mvn spring-boot:run
curl --location --request GET http://localhost:8080/api-docs --header "Content-Type: application/json"

The NullPointerException can be seen in org.springdoc.core.converters.HateoasLinksConverter.resolve(AnnotatedType, ModelConverterContext, Iterator<ModelConverter>) with a debugger; it is silently handled.