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

Encoder.writeString throws NullPointerException when the charSequence is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Bug
    • 1.6.3
    • None
    • java
    • None

    Description

      org.apache.avro.io.Encoder.writeString(CharSequence charSequence) throws NullPointerException when dealing with a javabean which has a null value in one of its fields, like the following one:

      Person person = new Person();
      person.setName("Kevin");
      person.setId(null);

      Attachments

        1. Encoder.java.patch
          0.7 kB
          Kevin Zhao

        Activity

          People

            Unassigned Unassigned
            kevinzhao Kevin Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: