Details
Description
As also described in this forum post: https://groups.google.com/forum/#!topic/camunda-bpm-users/xk3utUlZvew
A ProcessEngineException occurs when I try to get all tasks assigned by candidateGroups to the current authenticated user.
Please note: The current authenticated user has no (zero) groups.
Expected behavior is a normal (http 200) response with an empty result list.
Here is the rest-call: /engine-rest/task?candidateGroupsExpression=%24
{currentUserGroups()}
The JSON error response:
{"type":"ProcessEngineException","message":"Unable to invoke method 'taskCandidateGroupIn' on class 'org.camunda.bpm.engine.impl.TaskQueryImpl'"}This is the stack trace from the engine:
Caused by: org.camunda.bpm.engine.ProcessEngineException: Candidate group list is empty
at sun.reflect.GeneratedConstructorAccessor109.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.camunda.bpm.engine.impl.util.EnsureUtil.generateException(EnsureUtil.java:283)
at org.camunda.bpm.engine.impl.util.EnsureUtil.ensureNotEmpty(EnsureUtil.java:115)
at org.camunda.bpm.engine.impl.util.EnsureUtil.ensureNotEmpty(EnsureUtil.java:108)
at org.camunda.bpm.engine.impl.util.EnsureUtil.ensureNotEmpty(EnsureUtil.java:98)
at org.camunda.bpm.engine.impl.TaskQueryImpl.taskCandidateGroupIn(TaskQueryImpl.java:288)