Avro
  1. Avro
  2. AVRO-1064

Encoder.writeString throws NullPointerException when the charSequence is null

    Details

    • Type: Bug Bug
    • Status: Patch Available
    • Priority: Major Major
    • Resolution: Unresolved
    • 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);

        Activity

        Doug Cutting made changes -
        Fix Version/s 1.7.0 [ 12318848 ]
        Kevin Zhao made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Kevin Zhao made changes -
        Field Original Value New Value
        Attachment Encoder.java.patch [ 12523069 ]
        Kevin Zhao created issue -

          People

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

            Dates

            • Created:
              Updated:

              Development