Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* AVRO-3938: Add null guards for Schema.Parser The `Schema.Parser` class has a private final property `validate`. This means that the value provided to its constructor is saved and cannot be changed at a later time. However, if `null` is passed as `validate`, then it is bound to throw a `NullPointerException` at an arbitrary time. This commit adds a fail-fast guard against `null` to prevent this. * Apply suggestions from code review Co-authored-by: Martin Grigorov <[email protected]> * Modify test case --------- Co-authored-by: Martin Grigorov <[email protected]>
- Loading branch information