Heewon Lee created AVRO-3938:
--------------------------------
Summary: Schema.Parser.validate should not be null
Key: AVRO-3938
URL: https://issues.apache.org/jira/browse/AVRO-3938
Project: Apache Avro
Issue Type: Improvement
Components: java
Affects Versions: 1.11.3
Reporter: Heewon Lee
The class `org.apache.avro.Schema.Parser` has a private final property
`validate`. This implies that should `null` be passed to the constructor, it is
destined to throw an NPE at a later, arbitrary time when `validate` will be
used.
Thus, I propose a simple one-line guard against `null` here for a fail-fast
error, which would allow for a much easier debugging.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)