From 9450646c8828e9bc7d48700a513f3ac9de44e619 Mon Sep 17 00:00:00 2001 From: "MNUSHKIN, DMITRY" Date: Tue, 2 Mar 2021 16:38:29 -0500 Subject: restore not NULL verification restore not NULL verification on user params include test file missed in commit Issue-ID: SO-3564 Signed-off-by: AT&T Open Source Change-Id: I2ad7cff33081b1ccc5369cfc54dccf0eab1f6fbf Signed-off-by: Benjamin, Max (mb388a) --- .../onap/so/bpmn/infrastructure/workflow/tasks/WorkflowAction.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bpmn/so-bpmn-tasks/src/main/java') 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 f5955d6c7d..d1da38f2d9 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 @@ -204,8 +204,10 @@ public class WorkflowAction { } // If the user set "Homing_Solution" to "none", disable homing, else if "Homing_Solution" is specified, // enable it. - List> userParams = sIRequest.getRequestDetails().getRequestParameters().getUserParams(); - if (sIRequest.getRequestDetails().getRequestParameters() != null && userParams != null) { + if (sIRequest.getRequestDetails().getRequestParameters() != null + && sIRequest.getRequestDetails().getRequestParameters().getUserParams() != null) { + List> userParams = + sIRequest.getRequestDetails().getRequestParameters().getUserParams(); for (Map params : userParams) { if (params.containsKey(HOMINGSOLUTION)) { execution.setVariable(HOMING, !"none".equals(params.get(HOMINGSOLUTION))); -- cgit 1.2.3-korg