From 48b5b0067d301b4b9ec12415c68b4aec3fa3d098 Mon Sep 17 00:00:00 2001 From: Lukasz Muszkieta Date: Fri, 2 Aug 2019 18:59:12 +0200 Subject: Fix Blocker Bug - prevent from npe throwing Change-Id: Id6dd23c07f282ac7c7d3df3f612175d1bbf5a184 Issue-ID: SO-2187 Signed-off-by: Lukasz Muszkieta --- .../org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bpmn/so-bpmn-tasks') diff --git a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowAction.java b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowAction.java index 78cb533c9e..e6dd38ee1e 100644 --- a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowAction.java +++ b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowAction.java @@ -372,7 +372,7 @@ public class WorkflowAction { } } - if (flowsToExecute.isEmpty()) { + if (flowsToExecute == null || flowsToExecute.isEmpty()) { throw new IllegalStateException("Macro did not come up with a valid execution path."); } List flowNames = new ArrayList<>(); -- cgit 1.2.3-korg