[ 
https://issues.apache.org/jira/browse/AVRO-4242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18097384#comment-18097384
 ] 

ASF subversion and git services commented on AVRO-4242:
-------------------------------------------------------

Commit 693ec35047697f6217e5a2f4741b69c1a7425630 in avro's branch 
refs/heads/branch-1.12 from Ismaël Mejía
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=693ec35047 ]

AVRO-4242: [Java] Fix NPE in DataFileStream and DataFileReader when schema 
metadata is missing

Malformed Avro container files without the 'avro.schema' metadata entry
caused a NullPointerException in both DataFileStream and DataFileReader12
when the null value was passed directly to Schema.Parser.parse(). Replace
inline parsing with null-safe helper methods that throw a descriptive
IOException instead.


> Malformed Avro container without schema metadata should fail graciously
> -----------------------------------------------------------------------
>
>                 Key: AVRO-4242
>                 URL: https://issues.apache.org/jira/browse/AVRO-4242
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.11.5, 1.12.1
>            Reporter: Ismaël Mejía
>            Assignee: Ismaël Mejía
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.12.2
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> An avro container header without the schema metadata produces a 
> NullPointerException,
> we can handle this more graciously throwing an IOException in such case.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to