Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
  • Loading branch information
pingpingy1 and martin-g committed Feb 15, 2024
1 parent 78c2d74 commit 37c1518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lang/java/avro/src/main/java/org/apache/avro/Schema.java
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ public Parser() {
}

public Parser(final NameValidator validate) {
this.validate = Objects.requireNonNull(validate, "validate");
this.validate = validate != null ? validate : NameValidator.NO_VALIDATION;
}

/**
Expand Down

0 comments on commit 37c1518

Please sign in to comment.