aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/data-provider/provider/src/main
diff options
context:
space:
mode:
authorMichael Dürre <michael.duerre@highstreet-technologies.com>2020-03-24 09:01:10 +0100
committerMichael Dürre <michael.duerre@highstreet-technologies.com>2020-03-24 09:01:31 +0100
commit590aaa74c840d4e245af752148affa15c50ee232 (patch)
tree23810c297623e02ff818b95d60ac530dec4de83d /sdnr/wt/data-provider/provider/src/main
parentbc9425a00d19b75b149fbbf0c4ea7345de8721d5 (diff)
fixed inventory db entry
filled null values with empty strings Issue-ID: SDNC-1132 Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com> Change-Id: I3f210a52fe4aa08d18206e4faac35e19d9637f52
Diffstat (limited to 'sdnr/wt/data-provider/provider/src/main')
-rw-r--r--sdnr/wt/data-provider/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/dataprovider/data/HtDatabaseEventsService.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/sdnr/wt/data-provider/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/dataprovider/data/HtDatabaseEventsService.java b/sdnr/wt/data-provider/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/dataprovider/data/HtDatabaseEventsService.java
index 3f7e30c22..4a4b332d6 100644
--- a/sdnr/wt/data-provider/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/dataprovider/data/HtDatabaseEventsService.java
+++ b/sdnr/wt/data-provider/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/dataprovider/data/HtDatabaseEventsService.java
@@ -256,6 +256,13 @@ public class HtDatabaseEventsService implements ArchiveCleanProvider, DataProvid
if (assertIfClientNullForNodeName(internalEquipment.getNodeId())) {
return;
}
+ if(internalEquipment.getManufacturerIdentifier()==null) {
+ internalEquipment = new InventoryBuilder(internalEquipment).setManufacturerIdentifier("").build();
+ }
+ if(internalEquipment.getDate()==null) {
+ internalEquipment = new InventoryBuilder(internalEquipment).setDate("").build();
+ }
+
eventRWEquipment.write(internalEquipment, internalEquipment.getNodeId()+"/"+internalEquipment.getUuid());
}