Skip to content

Exception documenting RestControllerEndpoint with PostMapping #1761

Closed
@p120ph37

Description

@p120ph37

When a @RestControllerEndpoint bean defines a @PostMapping method and springdoc-openapi tries to introspect it, the following exception is thrown:

java.lang.NullPointerException: Cannot invoke "java.lang.reflect.Field.get(Object)" because "operationFiled" is null
        at org.springdoc.core.customizers.ActuatorOperationCustomizer.customize(ActuatorOperationCustomizer.java:84) ~[springdoc-openapi-common-1.6.9.jar:1.6.9]

This is the line in question: v1.6.9 ActuatorOperationCustomizer.java L84

This seems to have been introduced in this commit: 6ce3b5a

The issue is present in version 1.6.7 and later. Reverting to version 1.6.6 fixes it for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions