Skip to content

Commit

Permalink
Bug fix: retrieving contextAttribute list into contextAttributeRespon…
Browse files Browse the repository at this point in the history
…se even if not data found, complying with the FIWARE NGSI HTTP binding.
  • Loading branch information
flaviocirillo committed Mar 6, 2018
1 parent aeb1ef0 commit e6ddbef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ public class ContextAttributeResponse extends NgsiStructure {
@XmlElementWrapper(name = "contextAttributeList")
@XmlElement(name = "contextAttribute", required = true)
@JsonProperty("attributes")
private List<ContextAttribute> contextAttribute = null;
private List<ContextAttribute> contextAttribute = new ArrayList<ContextAttribute>();

@XmlElement(name = "statusCode", required = true)
private StatusCode statusCode = null;
private StatusCode statusCode = new StatusCode();

public ContextAttributeResponse() {

Expand Down

0 comments on commit e6ddbef

Please sign in to comment.