[Geoserver-devel] [jira] Created: (GEOS-366) java.lang.ArrayIndexOutOfBoundsException in Log4JFormatter.init()

java.lang.ArrayIndexOutOfBoundsException in Log4JFormatter.init()
-----------------------------------------------------------------

         Key: GEOS-366
         URL: http://jira.codehaus.org/browse/GEOS-366
     Project: GeoServer
        Type: Bug
  Components: Global
    Versions: 1.3-rc1
    Reporter: Paolo Rizzi
Assigned to: dblasby
     Fix For: 1.3-rc2

In:
   org.vfny.geoserver.global.Log4JFormatter.init()
there's this line:
   Handler handler = logger.getHandlers()[0];
but getHandlers() can return a zero-sized array
leading to a java.lang.ArrayIndexOutOfBoundsException.

Bye
Paolo Rizzi

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira