If an avro file has only nulls in it (or derived nulls, reading fails). ```rs let mut buff = Cursor::new(Vec::new()); let schema = Schema::parse_str(r#""null""#).unwrap(); let mut writer = Writer::new(&schema, &mut buff); writer.append(Value::Null).unwrap(); writer.into_inner().unwrap(); buff.set_position(0); for val in Reader::new(buff).unwrap() { val.unwrap(); } ``` panics unwrapping the null value with: ``` called `Result::unwrap()` on an `Err` value: Avro(unable to read block) ```
Activity
Fixes #181 - Do not error if there is nothing to read
martin-g commentedon Apr 15, 2025
Thanks for the report!
PR with a possible fix at #182
Fixes apache#181 - Do not error if there is nothing to read (apache#182)