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:[EMAIL PROTECTED]">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: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]