Skip to content

[JENKINS-73690] Lack of support for enum being null (throwing exception) #578

@Wadeck

Description

@Wadeck

Jenkins and plugins versions report

Environment
Paste the output here

What Operating System are you using (both controller, and any agents involved in the problem)?

N/A

Reproduction steps

When a Stapler WebMethod is defined with an Enum, the value cannot be null, otherwise it's throwing a NPE in the Converter code.

Expected Results

No exception, but a variable being null. With respect to the required=false.

Actual Results

NPE

Anything else?

JENKINS-73690

Are you interested in contributing a fix?

#577

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions