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

Prevent NPE when creating SpecificDatumReader/Writer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.2
    • Fix Version/s: 1.10.0
    • Component/s: java
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: