Added a try catch to see full stack trace of null pointer 24/114824/1
authorKalkere Ramesh, Sharan <sk720x@att.com>
Thu, 12 Nov 2020 16:23:42 +0000 (11:23 -0500)
committerKalkere Ramesh, Sharan <sk720x@att.com>
Thu, 12 Nov 2020 16:23:42 +0000 (11:23 -0500)
Issue-ID: SO-3346
Change-Id: Ia64304d5b4ae09bb1dbfc668ea639afc4ef35b35
Signed-off-by: Kalkere Ramesh, Sharan <sk720x@att.com>
bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowActionBBTasks.java

index 43a8505..217b3a8 100644 (file)
@@ -102,8 +102,11 @@ public class WorkflowActionBBTasks {
         List<ExecuteBuildingBlock> flowsToExecute =
                 (List<ExecuteBuildingBlock>) execution.getVariable("flowsToExecute");
         execution.setVariable("MacroRollback", false);
-
-        flowManipulatorListenerRunner.modifyFlows(flowsToExecute, new DelegateExecutionImpl(execution));
+        try {
+            flowManipulatorListenerRunner.modifyFlows(flowsToExecute, new DelegateExecutionImpl(execution));
+        } catch (NullPointerException ex) {
+            workflowAction.buildAndThrowException(execution, "Error in FlowManipulator Modify Flows", ex);
+        }
         int currentSequence = (int) execution.getVariable(G_CURRENT_SEQUENCE);
 
         ExecuteBuildingBlock ebb = flowsToExecute.get(currentSequence);