ppkarwasz commented on issue #3975:
URL: 
https://github.com/apache/logging-log4j2/issues/3975#issuecomment-3690364482

   Hi @dainiusvaznys,
   
   Sorry, I must have missed this report.
   
   As you noted, the problems stems from the way the last parameter is checked 
for throwables:
   
   
https://github.com/apache/logging-log4j2/blob/9c22ca26d817d0b6cde86475db56a3eb504adc43/log4j-api/src/main/java/org/apache/logging/log4j/message/ParameterFormatter.java#L249-L250
   
   Since `null instanceof Throwable` gives `false`, `noThrowableArgCount` has 
the wrong value. Feel free to submit a PR that fixes it together with a small 
regression test.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to