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

empty <session-config> parameter in web.inf causes NPE in JettyModuleBuilder

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-M3
    • 1.0-M4
    • deployment
    • None
    • Windows XP sp1a, Intel x86, Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
      Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)

    Description

      When an empty <session-config></session-config> parameter is included in web deployment descriptor, JettyModuleBuilder throws an NPE at line
      441:
      webModuleData.setAttribute("sessionTimeoutSeconds", webApp.getSessionConfigArray().length == 1 ? new Integer(webApp.getSessionConfigArray(0).getSessionTimeout().getBigIntegerValue().intValue() * 60) : defaultSessionTimeoutSeconds);

      It seems that an empty webApp.getSessionConfigArray() has length 1 but webApp.getSessionConfigArray(0) would return a null object.

      Attachments

        1. JettyModuleBuilder.patch
          2 kB
          Catalino Pineda Jr.

        Activity

          People

            djencks David Jencks
            cpineda Catalino Pineda Jr.
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: