diff options
author | 2020-03-24 09:01:10 +0100 | |
---|---|---|
committer | 2020-03-24 12:51:52 +0000 | |
commit | a9c139f239c4f33a768617f4952fc913ba2381b5 (patch) | |
tree | 531a01f9e508f0fac804aceb77761023ffe8e64d /sdnr/wt/data-provider/provider/src/main | |
parent | 284da45ec47cb85c6547eb3ae06acaf0578be894 (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
(cherry picked from commit 590aaa74c840d4e245af752148affa15c50ee232)
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.java | 7 |
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()); } |