summaryrefslogtreecommitdiffstats
path: root/restapi-call-node/provider/src
diff options
context:
space:
mode:
authorshashikanth <shashikanth.vh@huawei.com>2017-09-08 18:46:42 +0530
committershashikanth <shashikanth.vh@huawei.com>2017-09-08 18:46:53 +0530
commit4892ec15aadfddd266daa91ccef4d47085a04202 (patch)
treedf730ad6f7feb3b3a58c2762da5a35095e7eff9e /restapi-call-node/provider/src
parentac453f1bde56bf95b263113fd475ceee80ac9117 (diff)
Fix Blocker/Critical sonar issues
Fix Blocker/Critical sonar issues in vnfapi module https://sonar.onap.org/component_issues?id=org.onap.ccsdk.sli.plugins%3Accsdk-sli-plugins#resolved=false|severities=BLOCKER Issue-Id: CCSDK-67 Change-Id: I6393ebbaf4bd6dc2dea4a325f2a7d106ba20dd81 Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
Diffstat (limited to 'restapi-call-node/provider/src')
-rw-r--r--restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java b/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java
index 7ddeb4269..13295741c 100644
--- a/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java
+++ b/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java
@@ -627,7 +627,7 @@ public class RestapiCallNode implements SvcLogicJavaPlugin {
}
public void postMessageOnUeb(Map<String, String> paramMap, SvcLogicContext ctx) throws SvcLogicException {
- HttpResponse r = null;
+ HttpResponse r;
try {
UebParam p = getUebParameters(paramMap);
@@ -659,7 +659,7 @@ public class RestapiCallNode implements SvcLogicJavaPlugin {
setResponseStatus(ctx, prefix, r);
}
- if (r != null && r.code >= 300)
+ if (r.code >= 300)
throw new SvcLogicException(String.valueOf(r.code) + ": " + r.message);
}