Move string literal left side-avoid null pointer ex 96/93296/1
authorsindhu3672 <arcot.sindhuri@huawei.com>
Mon, 12 Aug 2019 06:39:09 +0000 (12:09 +0530)
committersindhu3672 <arcot.sindhuri@huawei.com>
Mon, 12 Aug 2019 06:39:09 +0000 (12:09 +0530)
Move string literal left side so.adapters.vnfmadapter WebSecurityConfigImpl class

Issue-ID: SO-2187

Signed-off-by: sindhu3672 <arcot.sindhuri@huawei.com>
Change-Id: I6669a11bf95a41e3efa18d907f2b3f3eb3f3f1b3

adapters/mso-vnfm-adapter/mso-vnfm-etsi-adapter/src/main/java/org/onap/so/adapters/vnfmadapter/WebSecurityConfigImpl.java

index f45d5a0..7920023 100644 (file)
@@ -40,7 +40,7 @@ public class WebSecurityConfigImpl extends WebSecurityConfig {
 
     @Override
     protected void configure(final HttpSecurity http) throws Exception {
-        if (clientAuth.equalsIgnoreCase("need")) {
+        if (("need").equalsIgnoreCase(clientAuth)) {
             http.csrf().disable().authorizeRequests().anyRequest().permitAll();
         } else {
             http.csrf().disable().authorizeRequests().antMatchers("/manage/health", "/manage/info").permitAll()