NPE in AbstractHandlerMethodMapping when trace logging is enabled and a handler's class loader does not provide package information #22306
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: regression
A bug that is also a regression
Milestone
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 returnnull
and the following line will NPE:spring-framework/spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractHandlerMethodMapping.java
Line 289 in 6bdf2c2
The text was updated successfully, but these errors were encountered: