Fix potential NPE 91/117291/2
authorxuegao <xue.gao@intl.att.com>
Mon, 1 Feb 2021 09:59:50 +0000 (10:59 +0100)
committerChristophe Closset <christophe.closset@intl.att.com>
Wed, 3 Feb 2021 10:34:09 +0000 (10:34 +0000)
Fix the potentail NPE in FeProxyServlet.

Issue-ID: SDC-3451
Signed-off-by: xuegao <xue.gao@intl.att.com>
Change-Id: I156e33c92882a264b98ea9e476382ae90a3befd4

catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/FeProxyServlet.java

index 337a8ae..200684a 100644 (file)
@@ -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()) {