Possible NPE in Spring MVC LogFormatUtils #27782
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Affects: 5.2.15
When using Spring Boot (2.3.12) and when I activate
debug: true
in application.yml, I can get a NullPointerException thrown by LogFormatUtils.formatValue(LogFormatUtils.java:62).Sample stacktrace:
Looking at the code of LogFormatUtils, the error can happen if value.toString() returns null.
Which is the case in my situation (value is an instance if InMemoryResource in my sample)
The text was updated successfully, but these errors were encountered: