diff options
author | Lukasz Muszkieta <lukasz.muszkieta@nokia.com> | 2019-08-02 18:59:12 +0200 |
---|---|---|
committer | Lukasz Muszkieta <lukasz.muszkieta@nokia.com> | 2019-08-02 18:59:12 +0200 |
commit | 48b5b0067d301b4b9ec12415c68b4aec3fa3d098 (patch) | |
tree | 1aae0c015fde7d02823a1278f9a05ba602f1ada3 /bpmn/so-bpmn-tasks/src | |
parent | 8b02fbc54e6db36d969b233d136f90b8d6615f80 (diff) |
Fix Blocker Bug - prevent from npe throwing
Change-Id: Id6dd23c07f282ac7c7d3df3f612175d1bbf5a184
Issue-ID: SO-2187
Signed-off-by: Lukasz Muszkieta <lukasz.muszkieta@nokia.com>
Diffstat (limited to 'bpmn/so-bpmn-tasks/src')
-rw-r--r-- | bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowAction.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<String> flowNames = new ArrayList<>(); |