summaryrefslogtreecommitdiffstats
path: root/huawei
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-02-16 14:06:24 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-02-16 14:25:54 +0530
commit8ba7c5e18eb8859aa1e2148ce5cdb7ae75789de5 (patch)
treea936f52859a08f15876e4113ece1cfe2e25435c4 /huawei
parent3a705078def1fd0a627b69027a8c63852216fa91 (diff)
Make sure the streams are closed properly - vnfm
Issue-ID: VFC-764 Change-Id: I5cff574c18268c81dbd4607cd327f775e629c500 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'huawei')
-rw-r--r--huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/process/VnfResourceMgr.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/process/VnfResourceMgr.java b/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/process/VnfResourceMgr.java
index f31d5a5d..858df17d 100644
--- a/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/process/VnfResourceMgr.java
+++ b/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/process/VnfResourceMgr.java
@@ -110,7 +110,7 @@ public class VnfResourceMgr {
RestfulResponse rsp = VnfmRestfulUtil.getRemoteResponse(ParamConstants.GRANT_RES_URL, VnfmRestfulUtil.TYPE_PUT,
grantParam.toString());
if(rsp == null || rsp.getStatus() != Constant.HTTP_OK) {
- return null;
+ return new JSONObject();
}
LOG.error("funtion=sendGrantToResmgr, status={}", rsp.getStatus());
return JSONObject.fromObject(rsp.getResponseContent());