diff --git a/src/main/java/com/checkmarx/jenkins/CxScanBuilder.java b/src/main/java/com/checkmarx/jenkins/CxScanBuilder.java index 92ad8a8e..036ac554 100644 --- a/src/main/java/com/checkmarx/jenkins/CxScanBuilder.java +++ b/src/main/java/com/checkmarx/jenkins/CxScanBuilder.java @@ -1305,7 +1305,7 @@ private CxScanConfig resolveConfiguration(Run run, DescriptorImpl descript ret.setUrl(cxConnectionDetails.getServerUrl().trim()); ret.setUsername(cxConnectionDetails.getUsername()); ret.setPassword(Aes.decrypt(cxConnectionDetails.getPassword(), cxConnectionDetails.getUsername())); - if (cxConnectionDetails.isProxy()) { + if (cxConnectionDetails.isProxy() != null && cxConnectionDetails.isProxy()) { Jenkins instance = Jenkins.getInstance(); if (instance != null && instance.proxy != null && !(isCxURLinNoProxyHost(useOwnServerCredentials ? this.serverUrl : getDescriptor().getServerUrl(), instance.proxy.getNoProxyHostPatterns()))) {