Skip to content

Constants.toCode throws NPE when namePrefix is null [SPR-8278] #12926

Closed
@spring-projects-issues

Description

@spring-projects-issues

Vasily Ivanov opened SPR-8278 and commented

org.springframework.core.Constants.toCode() javadoc says:

"namePrefix prefix of the constant names to search (may be null)"

However if null namePrefix is passed in then toCode throws NPE on startsWith check.


Affects: 3.0.4

Referenced from: commits 0e8f5d8, 6ffb043

1 votes, 2 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions