diff options
author | sindhu3672 <arcot.sindhuri@huawei.com> | 2019-08-12 12:09:09 +0530 |
---|---|---|
committer | sindhu3672 <arcot.sindhuri@huawei.com> | 2019-08-12 12:09:09 +0530 |
commit | d9b4f9f01c3a7d795900edf70288a625b14cbc12 (patch) | |
tree | c6b49e00dd2a8c9b4ca8eacae0c2fd2165a4868d /adapters/mso-vnfm-adapter/mso-vnfm-etsi-adapter/src/main | |
parent | 3081381bb2ba253fc0aa34203c90ea8bf63b26b4 (diff) |
Move string literal left side-avoid null pointer ex
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
Diffstat (limited to 'adapters/mso-vnfm-adapter/mso-vnfm-etsi-adapter/src/main')
-rw-r--r-- | adapters/mso-vnfm-adapter/mso-vnfm-etsi-adapter/src/main/java/org/onap/so/adapters/vnfmadapter/WebSecurityConfigImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adapters/mso-vnfm-adapter/mso-vnfm-etsi-adapter/src/main/java/org/onap/so/adapters/vnfmadapter/WebSecurityConfigImpl.java b/adapters/mso-vnfm-adapter/mso-vnfm-etsi-adapter/src/main/java/org/onap/so/adapters/vnfmadapter/WebSecurityConfigImpl.java index f45d5a0219..792002354b 100644 --- a/adapters/mso-vnfm-adapter/mso-vnfm-etsi-adapter/src/main/java/org/onap/so/adapters/vnfmadapter/WebSecurityConfigImpl.java +++ b/adapters/mso-vnfm-adapter/mso-vnfm-etsi-adapter/src/main/java/org/onap/so/adapters/vnfmadapter/WebSecurityConfigImpl.java @@ -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() |