-
-
Notifications
You must be signed in to change notification settings - Fork 522
Spring Data Rest: Exception while generating api doc with inheritance - NullPointerException: Cannot invoke "String.substring(int)" #1095
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm getting the same error, but not related to Spring Data Rest. I have an interface like this:
and an model implementated like this:
Using springboot 3.4.1, springdoc-openapi-starter-webmvc-ui 2.8.3, spring-boot-starter-hateoas 3.4.1, springdoc-openapi-ui 1.8.0 and springdoc-openapi-hateoas 1.8.0 dependencies and springdoc-openapi-maven-plugin 1.4 with Java 23. This throws the following exception during maven build:
|
Update: not sure if this is related to the inheritance stuff though. I have removed the interfaces and inheritance, and directly use the implementation of the XPathFilter in my model class. This still produces the same error. |
Check this @Manfred73 |
Describe the bug
When I add inheritance to my data model, a call to
/v3/api-docs.yaml
throw the following exception:To Reproduce
Springboot: 2.4.3
Springdoc: 1.5.6-SNAPSHOT
The full code to reproduce is available at https://github.com/mathias-ewald/springdoc-data-rest-example/tree/inheritance.
Expected behavior
I expect no exception to show but instead to see a nice and shiny specification of the inheritance model ;)
EDIT
The problem must have been introduced in 1.5.6-SNAPSHOT. When I revert back to 1.5.5 the problem is gone.
The text was updated successfully, but these errors were encountered: