mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Removing the possibility of a NPE in WorkflowService when run with trace logging. (Findbugs)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@88051 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -622,7 +622,12 @@ public class WorkflowServiceImpl implements WorkflowService
|
||||
*/
|
||||
public List<WorkflowInstance> cancelWorkflows(List<String> workflowIds)
|
||||
{
|
||||
if (logger.isTraceEnabled()) { logger.trace("Cancelling " + (workflowIds == null ? 0 : workflowIds.size()) + " workflowIds..."); }
|
||||
if (workflowIds == null)
|
||||
{
|
||||
workflowIds = Collections.emptyList();
|
||||
}
|
||||
|
||||
if (logger.isTraceEnabled()) { logger.trace("Cancelling " + workflowIds.size() + " workflowIds..."); }
|
||||
|
||||
List<WorkflowInstance> result = new ArrayList<WorkflowInstance>(workflowIds.size());
|
||||
|
||||
|
Reference in New Issue
Block a user