diff options
author | Jegadeesh Babu <jegabab1@in.ibm.com> | 2019-03-19 22:07:29 +0530 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2019-03-21 00:12:46 +0000 |
commit | 8cecdb593c5763c14ec42634d690efc170cac97e (patch) | |
tree | b50677d19871cd3aa089dff9913b5e8ff16d2ec2 /appc-config/appc-config-adaptor | |
parent | 530c16191693903bdc5bd16de944e48a3f4542a4 (diff) |
Modified code to avoid Null pointer exc
Sonar fix
Issue-ID: APPC-1547
Change-Id: Ie242256130f255a05366774516cf503c2a3d47cc
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
Diffstat (limited to 'appc-config/appc-config-adaptor')
-rw-r--r-- | appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/ConfigComponentAdaptor.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/ConfigComponentAdaptor.java b/appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/ConfigComponentAdaptor.java index 390df734a..01998957a 100644 --- a/appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/ConfigComponentAdaptor.java +++ b/appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/ConfigComponentAdaptor.java @@ -190,7 +190,7 @@ public class ConfigComponentAdaptor implements SvcLogicAdaptor { return audit(ctx, "RUNNING"); } - if ((key.equals("put")) || (key.equals("get"))) { + if (("put".equals(key)) || ("get".equals(key))) { String loginId = parameters.get("loginId"); String host = parameters.get("host"); String password = parameters.get("password"); |