Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-3814

NPE in GBeanOverride

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1, 2.1.1, 2.2
    • 2.0.3, 2.1.1, 2.2
    • core
    • Security Level: public (Regular issues)
    • None
    • Apache Harmony

    Description

      There's a flaw in org.apache.geronimo.system.configuration.GBeanOverride:

      getValue(), lines 388-389:
      PropertyEditor editor = loadPropertyEditor(attribute, classLoader);
      editor.setAsText(value);

      loadPropertyEditor() may return null (lines 402, 407) and this can cause NPE.

      I didn't see this NPE on Sun, but it occurs on Harmony (clearly some other issue exists causing the loadPropertyEditor() to return null, investigating) and I think it's a problem anyway.

      Attachments

        Issue Links

          Activity

            People

              gawor@mcs.anl.gov Jarek Gawor
              vmz Vasily Zakharov
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: