Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-596
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-596
Summary: AbstractQueryImpl.setParameterList may have 0 length list
Type: Bug
Status: Unassigned
Priority: Major
Project: Hibernate2
Components:
core
Versions:
2.1
Assignee:
Reporter: Chris Mercer
Created: Fri, 2 Jan 2004 12:57 PM
Updated: Fri, 2 Jan 2004 12:57 PM
Environment: Hibernate 2.1.1, mysql
Description:
Here is the source code for the method
public Query setParameterList(String name, Collection vals) throws HibernateException {
setParameterList(name, vals, guessType( vals.iterator().next() ) );
return this;
}
The problems comes in when the vals collection is size 0. The vals.iterator().next() will fail with a NoSuchElementException.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|