On 09/07/2011 01:17 PM, Yang wrote: > but instead of NPE, could we make Avro throw a more explicit exception, > so it's more descriptive?
This is possible. It could be done back-compatibly by throwing a subclass of NullPointerException, e.g., AvroNullValueException. The logic in question is in GenericDatumWriter, where Avro builds an error message indicating the path to the null in the data. Please file an issue in Jira for this. Doug
