aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/clamp/policy/operational/OperationalPolicyRepresentationBuilder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/onap/clamp/policy/operational/OperationalPolicyRepresentationBuilder.java b/src/main/java/org/onap/clamp/policy/operational/OperationalPolicyRepresentationBuilder.java
index 8bd8aac75..5f6cb31bf 100644
--- a/src/main/java/org/onap/clamp/policy/operational/OperationalPolicyRepresentationBuilder.java
+++ b/src/main/java/org/onap/clamp/policy/operational/OperationalPolicyRepresentationBuilder.java
@@ -319,7 +319,7 @@ public class OperationalPolicyRepresentationBuilder {
if (TYPE_LIST.equalsIgnoreCase(type)) {
property.addProperty(TYPE, "array");
- if (cdsProperty.get(PROPERTIES) != null) {
+ if (cdsProperty != null && cdsProperty.get(PROPERTIES) != null) {
JsonObject dataObject = new JsonObject();
addDataFields(cdsProperty.get(PROPERTIES).getAsJsonObject(),
dataObject);