Skip to content

PropertyOrFieldReference suffers from potential NullPointerException [SPR-11031] #15659

@spring-projects-issues

Description

@spring-projects-issues

Oliver Drotbohm opened SPR-11031 and commented

PropertyOrFieldReference.getValue(…) accesses ExpressionState.getConfiguration() without a check for null. If you've set up the ExpressionState with an EvaluationContext only, the configuration will be null.

Generally, ExpressionState could have a final configuration, default it to the default config used in SpelExpressionParser and let the constructors delegate to each other to avoid missing an assignment.


Affects: 3.2.4

Issue Links:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions