summaryrefslogtreecommitdiffstats
path: root/cps-ncmp-service/src/main
diff options
context:
space:
mode:
authorDylanB95EST <dylan.byrne@est.tech>2022-05-19 11:00:18 +0100
committerDylanB95EST <dylan.byrne@est.tech>2022-05-19 11:00:22 +0100
commitef62391fb034f599f92b113e27f90f7cedc1a5c0 (patch)
tree50ebed8c15fdd2088fdb39582f512ab5f0f10132 /cps-ncmp-service/src/main
parent324eb16687756f1850ffa484f652e117878cf33f (diff)
URI is not absolute when service name is not set
BUG - URI is not absolute exception when dmi-service-name is not set in the database, due to null String Has now been set to null value Issue-ID: CPS-1043 Change-Id: If48c34d8caee302a1849555755960dccfd26ab7a Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
Diffstat (limited to 'cps-ncmp-service/src/main')
-rw-r--r--cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/operations/YangModelCmHandleRetriever.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/operations/YangModelCmHandleRetriever.java b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/operations/YangModelCmHandleRetriever.java
index b1ac91d7a3..5063e8298a 100644
--- a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/operations/YangModelCmHandleRetriever.java
+++ b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/operations/YangModelCmHandleRetriever.java
@@ -55,9 +55,9 @@ public class YangModelCmHandleRetriever {
ncmpServiceCmHandle.setCmHandleId(cmHandleId);
populateCmHandleProperties(cmHandleDataNode, ncmpServiceCmHandle);
return YangModelCmHandle.toYangModelCmHandle(
- String.valueOf(cmHandleDataNode.getLeaves().get("dmi-service-name")),
- String.valueOf(cmHandleDataNode.getLeaves().get("dmi-data-service-name")),
- String.valueOf(cmHandleDataNode.getLeaves().get("dmi-model-service-name")),
+ (String) cmHandleDataNode.getLeaves().get("dmi-service-name"),
+ (String) cmHandleDataNode.getLeaves().get("dmi-data-service-name"),
+ (String) cmHandleDataNode.getLeaves().get("dmi-model-service-name"),
ncmpServiceCmHandle
);
}