From 8cecdb593c5763c14ec42634d690efc170cac97e Mon Sep 17 00:00:00 2001 From: Jegadeesh Babu Date: Tue, 19 Mar 2019 22:07:29 +0530 Subject: Modified code to avoid Null pointer exc Sonar fix Issue-ID: APPC-1547 Change-Id: Ie242256130f255a05366774516cf503c2a3d47cc Signed-off-by: Jegadeesh Babu --- .../src/main/java/org/onap/appc/ccadaptor/ConfigComponentAdaptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit 1.2.3-korg