Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2761

Prevent NPE when creating SpecificDatumReader/Writer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.2
    • 1.10.0
    • java
    • None

    Description

      In versions prior to 1.9.X, when creating an SpecificDatumReader/Writer object (passing a schema as argument) and in case the schema was null, the default value was the instance and it didn't throw any exception.

      In versions 1.9.X, those constructors will throw a NullPointerException in case the schema is null.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mmolimar Mario Molina
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: