Skip to content

Commit

Permalink
chore: fix broken build due to upstream Jackson version bump (#9067)
Browse files Browse the repository at this point in the history
Jackson was bumped upstream: confluentinc/common#446

Version 2.13 returns null instead of NullNode (cf FasterXML/jackson-databind#3389)
  • Loading branch information
mjsax authored Apr 27, 2022
1 parent 65ae45b commit f6162b5
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@

package io.confluent.ksql.test.model;

import static java.util.Objects.requireNonNull;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
Expand Down Expand Up @@ -57,7 +55,7 @@ public final class TopicNode {
@JsonProperty("replicas") final Integer replicas
) {
this.name = name == null ? "" : name;
this.avroSchema = buildAvroSchema(requireNonNull(schema, "schema"));
this.avroSchema = buildAvroSchema(schema == null ? NullNode.getInstance() : schema);
this.format = format == null ? "" : format;
this.numPartitions = numPartitions == null ? 1 : numPartitions;
this.replicas = replicas == null ? 1 : replicas;
Expand Down

0 comments on commit f6162b5

Please sign in to comment.