]
Joram Barrez resolved JBPM-2639.
--------------------------------
Resolution: Done
Task with taskform and timer leads to NPE
-----------------------------------------
Key: JBPM-2639
URL:
https://jira.jboss.org/jira/browse/JBPM-2639
Project: jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: jBPM 4.2
Reporter: Joram Barrez
Assignee: Joram Barrez
Fix For: jBPM 4.3
Code that throws NPE:
private InputStream loadCSS(String executionId)
{
RepositoryService repoService = processEngine.getRepositoryService();
ExecutionService execService = processEngine.getExecutionService();
ProcessInstance instance = execService.createProcessInstanceQuery()
.processInstanceId(executionId)
.uniqueResult();
ProcessDefinition definition = repoService.createProcessDefinitionQuery()
.processDefinitionId(instance.getProcessDefinitionId()).uniqueResult();
InputStream in = repoService.getResourceAsStream(definition.getDeploymentId(),
PROCESSFORMS_CSS);
return in;
}
When a timer is defined on a task, a new execution is created. The procInst query will
return null in that case (PARENT != null in HQL).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: