From: xuegao Date: Mon, 1 Feb 2021 09:59:50 +0000 (+0100) Subject: Fix potential NPE X-Git-Tag: 1.8.2~27 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F91%2F117291%2F2;p=sdc.git Fix potential NPE Fix the potentail NPE in FeProxyServlet. Issue-ID: SDC-3451 Signed-off-by: xuegao Change-Id: I156e33c92882a264b98ea9e476382ae90a3befd4 --- 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()) {