[jboss-jira] [JBoss JIRA] (LOGMGR-115) Writing the configuration file should handle properties with null values

James Perkins (JIRA) issues at jboss.org
Tue Oct 7 12:41:12 EDT 2014


    [ https://issues.jboss.org/browse/LOGMGR-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009445#comment-13009445 ] 

James Perkins commented on LOGMGR-115:
--------------------------------------

Also note if we treat the property as removed, we need to remove it's name from the property list as well, e.g. {{handler.NAME.properties=}}.

> Writing the configuration file should handle properties with null values
> ------------------------------------------------------------------------
>
>                 Key: LOGMGR-115
>                 URL: https://issues.jboss.org/browse/LOGMGR-115
>             Project: JBoss Log Manager
>          Issue Type: Enhancement
>            Reporter: James Perkins
>            Assignee: James Perkins
>            Priority: Minor
>
> Currently in the configuration API if a property is set to {{null}} an NPE occurs during the write and is swallowed. The idea was the {{removeProperty()}} should be used in the API. We should though check for {{null}} values and either not write the value or leave the value blank and have the reader for the configuration assume a value of 0 length is {{null}}.



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jboss-jira mailing list