aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-fe/src
diff options
context:
space:
mode:
authorxuegao <xue.gao@intl.att.com>2021-02-01 10:59:50 +0100
committerChristophe Closset <christophe.closset@intl.att.com>2021-02-03 10:34:09 +0000
commitf3efb107e285c9874e1d37f1cdcda8ceb1f7719b (patch)
tree2e970e4f70057f40fee136d4029a39d338a1042f /catalog-fe/src
parent330acfe0e38dc89f66bde20e55d08c8338fd091f (diff)
Fix potential NPE
Fix the potentail NPE in FeProxyServlet. Issue-ID: SDC-3451 Signed-off-by: xuegao <xue.gao@intl.att.com> Change-Id: I156e33c92882a264b98ea9e476382ae90a3befd4
Diffstat (limited to 'catalog-fe/src')
-rw-r--r--catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/FeProxyServlet.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/FeProxyServlet.java b/catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/FeProxyServlet.java
index 337a8ae100..200684a530 100644
--- a/catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/FeProxyServlet.java
+++ b/catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/FeProxyServlet.java
@@ -103,7 +103,8 @@ public class FeProxyServlet extends SSLProxyServlet {
{
Configuration config = getConfiguration(clientRequest);
if (config == null) {
- log.error("failed to retrieve configuration.");
+ log.error("Failed to retrieve configuration. Adding proxy header failed.");
+ return;
}
BasicAuthConfig basicAuth = config.getBasicAuth();
if (basicAuth.getEnabled()) {