mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix for SLNG-1156 - exception when displaying workflow task with empty workflow package, causing tasklist data webscript to fail and list to be rendered as empty.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10845 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -618,9 +618,11 @@ public class WorkflowServiceImpl implements WorkflowService
|
||||
WorkflowTask workflowTask = getTaskById(taskId);
|
||||
List<NodeRef> contents = new ArrayList<NodeRef>();
|
||||
|
||||
if(workflowTask != null)
|
||||
if (workflowTask != null)
|
||||
{
|
||||
NodeRef workflowPackage = (NodeRef)workflowTask.properties.get(WorkflowModel.ASSOC_PACKAGE);
|
||||
if (workflowPackage != null)
|
||||
{
|
||||
if (workflowPackage.getStoreRef().getProtocol().equals(StoreRef.PROTOCOL_AVM))
|
||||
{
|
||||
if (protectedNodeService.exists(workflowPackage))
|
||||
@@ -685,11 +687,8 @@ public class WorkflowServiceImpl implements WorkflowService
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return contents;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
return contents;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user