commit | 48b5b0067d301b4b9ec12415c68b4aec3fa3d098 | [log] [tgz] |
---|---|---|
author | Lukasz Muszkieta <lukasz.muszkieta@nokia.com> | Fri Aug 02 18:59:12 2019 +0200 |
committer | Lukasz Muszkieta <lukasz.muszkieta@nokia.com> | Fri Aug 02 18:59:12 2019 +0200 |
tree | 1aae0c015fde7d02823a1278f9a05ba602f1ada3 | |
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>
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 78cb533..e6dd38e 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 @@ } } - 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<>();