aboutsummaryrefslogtreecommitdiffstats
path: root/appc-config
diff options
context:
space:
mode:
authorJegadeesh Babu <jegabab1@in.ibm.com>2019-03-19 22:07:29 +0530
committerTakamune Cho <takamune.cho@att.com>2019-03-21 00:12:46 +0000
commit8cecdb593c5763c14ec42634d690efc170cac97e (patch)
treeb50677d19871cd3aa089dff9913b5e8ff16d2ec2 /appc-config
parent530c16191693903bdc5bd16de944e48a3f4542a4 (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')
-rw-r--r--appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/ConfigComponentAdaptor.java2
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");