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

NPE When copying builder with nullable record

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.8.1
    • 1.9.0
    • None
    • None

    Description

      Assume a schema with a record that embeds a record that is optional (i.e. the reference is union with null) and has the default value null.

      Then create a builder and copy that builder into a new builder.
      Using this copy will yield a NulPointerException.

      Attachments

        Issue Links

          Activity

            People

              nielsbasjes Niels Basjes
              nielsbasjes Niels Basjes
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: