[ https://issues.apache.org/jira/browse/LOG4J2-2002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16143353#comment-16143353 ]
Paul Burrowes edited comment on LOG4J2-2002 at 8/28/17 4:26 AM: ---------------------------------------------------------------- Logger configuration is one that can accept null for the level. This is useful when adding an appender ref to a logger but inheriting the level from {root}. I have a patch ready for this but I'm waiting for the company CLA to be forwarded to Apache so I can't submit a PR yet. was (Author: pburrowesoc): Logger configuration is one that can accept null for the level. This is useful when adding an appender ref to a logger but inheriting the level from {root}. > DefaultConfigurationBuilder.writeXmlAttributes does not handle null attribute > values > ------------------------------------------------------------------------------------ > > Key: LOG4J2-2002 > URL: https://issues.apache.org/jira/browse/LOG4J2-2002 > Project: Log4j 2 > Issue Type: Bug > Components: Configurators > Affects Versions: 2.8.2 > Reporter: Paul Burrowes > Assignee: Mikael Ståldal > > The default java {{XMLStreamWriterImpl}} {{writeXMLContent()}} requires that > the content argument be non-null. Attributes in a Log4J component > configuration may be null which breaks export. > {{DefaultConfigurationBuilder.writeXmlAttributes()}} needs to perform a null > check for every attribute before passing it to > {{XMLStreamWriterImpl.writeAttribute()}}. -- This message was sent by Atlassian JIRA (v6.4.14#64029)