[
https://issues.apache.org/jira/browse/AVRO-2120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16302390#comment-16302390
]
ASF GitHub Bot commented on AVRO-2120:
--------------------------------------
GitHub user nielsbasjes opened a pull request:
https://github.com/apache/avro/pull/272
AVRO-2120: Fix NullPointerException thrown by Schema.Parser#parse("")
Fix for master for https://issues.apache.org/jira/browse/AVRO-2120 .
TODO: Also backport to branch 1.8
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/nielsbasjes/avro
AVRO-2120-Fix-NPE-parse-empty-string
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/avro/pull/272.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #272
----
commit 5f7a3a28549ff21aebfb379a197dd1c7211f8352
Author: Niels Basjes <nbasjes@...>
Date: 2017-12-23T12:24:52Z
AVRO-2120: Fix NullPointerException thrown by Schema.Parser#parse("")
----
> NullPointerException thrown by Schema.Parser#parse(literal)
> -----------------------------------------------------------
>
> Key: AVRO-2120
> URL: https://issues.apache.org/jira/browse/AVRO-2120
> Project: Avro
> Issue Type: Improvement
> Components: java
> Affects Versions: 1.8.2
> Reporter: Sebastien Dubois
> Assignee: Niels Basjes
>
> Calling the parse method with an invalid input (e.g., "") instead of a valid
> schema throws a NullPointerException.
> Expected behavior: SchemaParseException.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)