diff --git a/src/main/java/org/etsi/osl/tmf/pcm620/reposervices/ProductSpecificationRepoService.java b/src/main/java/org/etsi/osl/tmf/pcm620/reposervices/ProductSpecificationRepoService.java index 9a99a9c50e614241c638be17203449bcf923e3c4..5c5696a045c1c57083899de0238a2b2900243895 100644 --- a/src/main/java/org/etsi/osl/tmf/pcm620/reposervices/ProductSpecificationRepoService.java +++ b/src/main/java/org/etsi/osl/tmf/pcm620/reposervices/ProductSpecificationRepoService.java @@ -430,9 +430,10 @@ public class ProductSpecificationRepoService { // we need the attachment model from resource spec models boolean idexists = false; for (ProductSpecificationCharacteristic orinalAtt : prodSpec.getProductSpecCharacteristic()) { - if (orinalAtt.getName().equals(ar.getName())) { + if (orinalAtt.getName()!=null && ar.getName()!=null && orinalAtt.getName().equals(ar.getName())) { idexists = true; idAddedUpdated.put(orinalAtt.getName(), true); + orinalAtt.updateWith( ar ); break; } }