diff --git a/eu.neclab.iotplatform.ngsi.api/src/main/java/eu/neclab/iotplatform/ngsi/api/datamodel/ContextAttributeResponse.java b/eu.neclab.iotplatform.ngsi.api/src/main/java/eu/neclab/iotplatform/ngsi/api/datamodel/ContextAttributeResponse.java index a9477637..ad8238c8 100644 --- a/eu.neclab.iotplatform.ngsi.api/src/main/java/eu/neclab/iotplatform/ngsi/api/datamodel/ContextAttributeResponse.java +++ b/eu.neclab.iotplatform.ngsi.api/src/main/java/eu/neclab/iotplatform/ngsi/api/datamodel/ContextAttributeResponse.java @@ -67,10 +67,10 @@ public class ContextAttributeResponse extends NgsiStructure { @XmlElementWrapper(name = "contextAttributeList") @XmlElement(name = "contextAttribute", required = true) @JsonProperty("attributes") - private List contextAttribute = null; + private List contextAttribute = new ArrayList(); @XmlElement(name = "statusCode", required = true) - private StatusCode statusCode = null; + private StatusCode statusCode = new StatusCode(); public ContextAttributeResponse() {