haul 2002/06/06 01:43:34 Modified: src/java/org/apache/cocoon/components/language/markup/xsp Tag: cocoon_2_0_3_branch EsqlQuery.java Log: Fix ArrayOutOfBound Exception reported by Andrew C. Oliver Revision Changes Path No revision No revision 1.11.2.5 +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.11.2.4 retrieving revision 1.11.2.5 diff -u -r1.11.2.4 -r1.11.2.5 --- EsqlQuery.java 4 Jun 2002 09:37:17 -0000 1.11.2.4 +++ EsqlQuery.java 6 Jun 2002 08:43:34 -0000 1.11.2.5 @@ -66,7 +66,7 @@ * * based on the orginal esql.xsl * @author <a href="mailto:[EMAIL PROTECTED]">Torsten Curdt</a> - * @version CVS $Id: EsqlQuery.java,v 1.11.2.4 2002/06/04 09:37:17 haul Exp $ + * @version CVS $Id: EsqlQuery.java,v 1.11.2.5 2002/06/06 08:43:34 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: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]