---------
Hello,

with CVS HEAD I get a IndexOutOfBoundsException sometimes and the page is
not displayed properly.

CocoonComponentManager revision:1.49

java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
        at java.util.ArrayList.RangeCheck(ArrayList.java:508)
        at java.util.ArrayList.remove(ArrayList.java:388)
        at 
org.apache.cocoon.components.EnvironmentDescription.removeLastSitemapConfiguration(CocoonComponentManager.java:590)
        at 
org.apache.cocoon.components.CocoonComponentManager.leaveEnvironment(CocoonComponentManager.java:163)
        at 
org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:360)
        at 
org.apache.cocoon.components.source.impl.SitemapSource.<init>(SitemapSource.java:220)



        
 void removeLastSitemapConfiguration() {
        this.sitemapConfigurations.remove(this.sitemapConfigurations.size()-1);
  }

Looks like this.sitemapConfigurations.size() is zero. Is this a illegal state or 
should 
the method check for it?


Martin

--
Martin Holz     <[EMAIL PROTECTED]>

Softwareentwicklung / Vernetztes Studium - Chemie
FIZ CHEMIE Berlin
Franklinstrasse 11
D-10587 Berlin     

Reply via email to