Commons Configuration
  1. Commons Configuration
  2. CONFIGURATION-111

[configuration] addProperty throws a NPE in XMLConfiguration

    Details

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

      Operating System: All
      Platform: All

      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)

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development