You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2019/11/03 22:49:00 UTC

[jira] [Created] (CONFIGURATION-767) NullPointerException in XMLConfiguration.createTransformer() when no FileLocator is set

Gary D. Gregory created CONFIGURATION-767:
---------------------------------------------

             Summary: NullPointerException in XMLConfiguration.createTransformer() when no FileLocator is set
                 Key: CONFIGURATION-767
                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-767
             Project: Commons Configuration
          Issue Type: New Feature
            Reporter: Gary D. Gregory


You get a {{NullPointerException}} in {{XMLConfiguration.createTransformer()}} when no FileLocator is set. 

For example:
{code:java}
        XMLConfiguration xmlConfig = new XMLConfiguration();
        xmlConfig.setRootElementName("IAmRoot");
        xmlConfig.setProperty("Child", "Alexander");
        StringWriter sw = new StringWriter();
        xmlConfig.write(sw);
{code}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)