Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-111

[configuration] addProperty throws a NPE in XMLConfiguration

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Bugzilla Id:
      29722

      Description

      The method addProperty in DOMConfiguration throws a NullPointerException if the
      configuration file hasn't been loaded.

      java.lang.NullPointerException
      at
      org.apache.commons.configuration.DOMConfiguration.setXmlProperty(DOMConfiguration.java:254)
      at
      org.apache.commons.configuration.DOMConfiguration.addProperty(DOMConfiguration.java:225)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ebourg Emmanuel Bourg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: