Commit 87ab245d authored by couzinie's avatar couzinie
Browse files

Fixed bad null check on a JsonNode object.

parent 75ec2b19
......@@ -32,7 +32,7 @@ public class RequestDefault {
@JsonProperty("contrat_acces") String contrat_acces,
@JsonProperty("tenant_id") String tenant_id
) throws JsonProcessingException {
if (dsl_request != null || !dsl_request.isEmpty()) {
if (!dsl_request.isNull() || !dsl_request.isEmpty()) {
this.dsl_request = dsl_request;
} else {
this.dsl_request = new ObjectMapper().readTree(this.dsl);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment