[slf4j-dev] [Bug 12] NullPointerException in SLF4JLog.java (jcl104-over-slf4j.jar)
bugzilla-daemon at gil.qos.ch
bugzilla-daemon at gil.qos.ch
Mon Jan 9 17:21:19 CET 2006
http://bugzilla.slf4j.org/show_bug.cgi?id=12
------- Additional Comments From listid at qos.ch 2006-01-09 17:21 -------
Hello Boris,
Thank you for your valuable input to this report.
Based on http://issues.apache.org/bugzilla/show_bug.cgi?id=38174, it seems that you
advocate an approach where the String.valueOf(message) calls or vriants thereof, are
surrounded by a try/catch block. While this may well be the correct approach in the
general case, in this particular case it may be somehwat of an overkill, especially
considering that in the vast majority of cases the type of "message" is just String.
Thus, "null" maybe possible but rare input to printing method, objects throwing
exceptions in their toString() method may not.
However, the same logic applies for message argument case in relation with
MessageFormatter, in which case, the try/catch approach may be advisable.
--
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the slf4j-dev
mailing list