From 1d0d38ab0e8c5c4b9ee31536d07c8c236d8f8d52 Mon Sep 17 00:00:00 2001 From: tsemachhadad Date: Tue, 7 Jan 2025 12:11:47 +0200 Subject: [PATCH] Needed to fix null issue in JFrog artifactory --- src/main/java/com/checkmarx/ast/wrapper/CxConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/checkmarx/ast/wrapper/CxConfig.java b/src/main/java/com/checkmarx/ast/wrapper/CxConfig.java index 7c0189c..5423de5 100644 --- a/src/main/java/com/checkmarx/ast/wrapper/CxConfig.java +++ b/src/main/java/com/checkmarx/ast/wrapper/CxConfig.java @@ -57,8 +57,8 @@ List toArguments() { commands.add(CxConstants.BASE_AUTH_URI); commands.add(getBaseAuthUri()); } - - commands.addAll(getAdditionalParameters()); + if (getAdditionalParameters() != null) + commands.addAll(getAdditionalParameters()); return commands; }