From e76775df11879a0e26a078be39d2724884f17865 Mon Sep 17 00:00:00 2001 From: "raviteja.karumuri" Date: Mon, 21 Oct 2024 13:02:43 +0100 Subject: Fix the Notification URl Property Null Check on the Standard Client. Issue-ID: CCSDK-4061 Change-Id: Icdcd31fdcf8031248d75e6d494d56760981243ca Signed-off-by: Raviteja Karumuri --- .../oran/a1policymanagementservice/clients/StdA1ClientVersion2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit 1.2.3-korg