Skip to content

SpringProperties: the ClassLoader might be null, if class is loaded by the bootstrap class loader [SPR-11721] #16343

Closed
@spring-projects-issues

Description

@spring-projects-issues

Artem Bilan opened SPR-11721 and commented

The NPE is here:

ClassLoader cl = SpringProperties.class.getClassLoader();
			URL url = cl.getResource(PROPERTIES_RESOURCE_LOCATION);

The similar issue is here: http://stackoverflow.com/questions/1921238/getclass-getclassloader-is-null-why


Affects: 3.2.8, 4.0.3

Reference URL: http://stackoverflow.com/questions/23228968

Issue Links:

Backported to: 3.2.9

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