getResultList() throwing arrayindexoutof bounds exception on empty result
-------------------------------------------------------------------------
Key: JBSEAM-3495
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3495
Project: Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.1.0.CR1
Environment: All
Reporter: kanwar sangha
We are extending EntityQuery and overriding
@Override
public List getResultList() {
edList = super.getResultList();
return edList;
}
Sun-appserver 9.1
mysql version - 6.0
Seam - 2.1.0.CR1
exception
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:546)
at java.util.ArrayList.get(ArrayList.java:321)
at org.jboss.seam.framework.Query.getRenderedEjbql(Query.java:240)
at org.jboss.seam.framework.EntityQuery.createQuery(EntityQuery.java:175)
at org.jboss.seam.framework.EntityQuery.initResultList(EntityQuery.java:73)
at org.jboss.seam.framework.EntityQuery.getResultList(EntityQuery.java:65)
at com.prod.sps.session.EventdefinitionList.getResultList(EventdefinitionList.java:44)
To Reproduce - Just do a seam-gen on a table try to pull up the
"entitylist.xhtml" page with no data in the table.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira