[
http://jira.jboss.com/jira/browse/JBSEAM-2268?page=all ]
Dan Allen resolved JBSEAM-2268.
-------------------------------
Resolution: Done
Patched with test.
check if actor has group actor ids before getting
pooledTaskInstanceList
------------------------------------------------------------------------
Key: JBSEAM-2268
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2268
Project: JBoss Seam
Issue Type: Bug
Affects Versions: 2.0.0.GA
Reporter: Dan Allen
Assigned To: Dan Allen
Priority: Minor
Fix For: 2.0.1.GA
Original Estimate: 5 minutes
Remaining Estimate: 5 minutes
If the current actor does not have any group actor ids, then the pooledTaskInstanceList
should be smart and return an empty list rather than allow a jBPM exception to be thrown
due to a failed Hibernate query.
Current result:
couldn't get pooled task instances list for actors '[]'
Easy fix:
if ( Actor.instance().getGroupActorIds().size() == 0 )
{
return Collections.<TaskInstance>emptyList();
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira