aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorraviteja.karumuri <raviteja.karumuri@est.tech>2024-10-21 13:02:43 +0100
committerRAVITEJA KARUMURI <raviteja.karumuri@est.tech>2024-10-21 14:31:53 +0000
commita52529e792b91d937a4bc5d565636a05fa41a1f7 (patch)
tree3fcb0c4aee432d699f9a3afcb40d8ca5b6881896
parent3742b04bdc730490db9adb25567ebb96c9ccdb56 (diff)
Fix the Notification URl Property Null Check on the Standard Client.1.7.2
Issue-ID: CCSDK-4061 Change-Id: Icdcd31fdcf8031248d75e6d494d56760981243ca Signed-off-by: Raviteja Karumuri <raviteja.karumuri@est.tech>
-rw-r--r--a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/clients/StdA1ClientVersion2.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/clients/StdA1ClientVersion2.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/clients/StdA1ClientVersion2.java
index 3362b790..2f3ea8a6 100644
--- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/clients/StdA1ClientVersion2.java
+++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/clients/StdA1ClientVersion2.java
@@ -59,7 +59,7 @@ public class StdA1ClientVersion2 implements A1Client {
@Override
public String createPutPolicyUri(String type, String policyId, String statusNotificationUri) {
String policyUri = createPolicyUri(type, policyId);
- if (statusNotificationUri.isEmpty()) {
+ if (statusNotificationUri == null || statusNotificationUri.isEmpty()) {
return policyUri;
}
UriBuilderFactory builderFactory = new DefaultUriBuilderFactory(policyUri);