Skip to content

NPE for alias resolved to null in SimpleAliasRegistry [SPR-13016] #17607

@spring-projects-issues

Description

@spring-projects-issues

David J. M. Karlsen opened SPR-13016 and commented

UseCase:
I have to override a property (during integration-testing) to be null instead of another value defined in a propertyfile for use with the propertyplaceholderconfigurer.
When doing so this will result in a NPE at SimpleAliasRegistry in line 125 here:

if (resolvedAlias.equals(resolvedName)) {
					this.aliasMap.remove(alias);
				}

because resolvedAlias is null


Affects: 3.2.13, 4.1.6

Backported to: 3.2.14

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions