Skip to content

Commit 80ca9fd

Browse files
AST-14325 - Change authentication screen
- Check is base-uri is defined before adding it to commands;
1 parent a78a370 commit 80ca9fd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/main/java/com/checkmarx/ast/wrapper/CxConfig.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,17 @@ List<String> toArguments() {
4343
commands.add(getClientSecret());
4444
}
4545

46-
if (StringUtils.isNotBlank(getTenant())) {
46+
if (StringUtils.isNotEmpty(getTenant())) {
4747
commands.add(CxConstants.TENANT);
4848
commands.add(getTenant());
4949
}
5050

51-
commands.add(CxConstants.BASE_URI);
52-
commands.add(getBaseUri());
51+
if (StringUtils.isNotEmpty(getBaseUri())) {
52+
commands.add(CxConstants.BASE_URI);
53+
commands.add(getBaseUri());
54+
}
5355

54-
if (StringUtils.isNotBlank(getBaseAuthUri())) {
56+
if (StringUtils.isNotEmpty(getBaseAuthUri())) {
5557
commands.add(CxConstants.BASE_AUTH_URI);
5658
commands.add(getBaseAuthUri());
5759
}

0 commit comments

Comments
 (0)