Summary: | XML Appender throws NullPointerException when logging null | ||
---|---|---|---|
Product: | Log4j - Now in Jira | Reporter: | David Vandegrift <dvandegrift> |
Component: | Appender | Assignee: | log4j-dev <log4j-dev> |
Status: | RESOLVED FIXED | ||
Severity: | critical | CC: | vkorenev |
Priority: | P3 | ||
Version: | 1.2 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux | ||
Attachments: | Here is a simple patch to log the string "null" instead of throwing a java.lang.NullPointerException |
Description
David Vandegrift
2002-08-08 20:24:30 UTC
Created attachment 2991 [details]
Here is a simple patch to log the string "null" instead of throwing a java.lang.NullPointerException
Fixed in 1.2.8. A null string will be returned as "", (the empty string). |