You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by ha...@apache.org on 2002/06/06 10:41:27 UTC

cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp EsqlQuery.java

haul        2002/06/06 01:41:27

  Modified:    src/java/org/apache/cocoon/components/language/markup/xsp
                        EsqlQuery.java
  Log:
  Fix ArrayOutOfBounds Exception reported by Andrew C. Oliver
  
  Revision  Changes    Path
  1.18      +2 -2      xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/EsqlQuery.java
  
  Index: EsqlQuery.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/EsqlQuery.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- EsqlQuery.java	4 Jun 2002 09:06:53 -0000	1.17
  +++ EsqlQuery.java	6 Jun 2002 08:41:27 -0000	1.18
  @@ -66,7 +66,7 @@
    *
    * based on the orginal esql.xsl
    * @author <a href="mailto:tcurdt@dff.st">Torsten Curdt</a>
  - * @version CVS $Id: EsqlQuery.java,v 1.17 2002/06/04 09:06:53 haul Exp $
  + * @version CVS $Id: EsqlQuery.java,v 1.18 2002/06/06 08:41:27 haul Exp $
    */
   
   public class EsqlQuery {
  @@ -240,7 +240,7 @@
       }
   
       public boolean groupLevelExists() {
  -        return (this.groups != null && this.groups.get(this.groupLevel) != null);
  +        return (this.groups != null && this.groups.size() >= this.groupLevel+1 && this.groups.get(this.groupLevel) != null);
       }
   
       public void setGroupingVar( String key ) throws SQLException {
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org