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:
Kevin Roast
2008-09-08 09:37:20 +00:00
parent e27a8561ee
commit 1936d6e5e3

View File

@@ -621,6 +621,8 @@ public class WorkflowServiceImpl implements WorkflowService
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;
}
}