Skip to content

NPE in AbstractHandlerMethodMapping when trace logging is enabled and a handler's class loader does not provide package information #22306

@wilkinsona

Description

@wilkinsona

Affects: 5.1.4.RELEASE

In the unlikely event of trace logging being enabled and a handler's class having been loaded by a class loader that does not provide package information, Class.getPackage() will return null and the following line will NPE:

String formattedType = Arrays.stream(userType.getPackage().getName().split("\\."))

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions