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

Encoder.writeString throws NullPointerException when the charSequence is null

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 1.6.3
    • Fix Version/s: None
    • Component/s: java
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: