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:
Neil McErlean
2014-10-14 13:34:44 +00:00
parent 33fa5fb4be
commit b652eb89c5

View File

@@ -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());