Avro
  1. Avro
  2. AVRO-375

Initializing uninizialized encoders fail

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: java
    • Labels:
      None

      Description

      If you construct an encoder with null as OutputStream and try to call init() with a valid OutputStream later, the code throws NullPointerException.

      1. AVRO-375-test.patch
        1 kB
        Thiruvalluvan M. G.
      2. AVRO-375.patch
        2 kB
        Thiruvalluvan M. G.

        Issue Links

          Activity

          Hide
          Thiruvalluvan M. G. added a comment -

          The test patch adds unit-tests that catch the problem and the actual patch fixes the problem.

          Show
          Thiruvalluvan M. G. added a comment - The test patch adds unit-tests that catch the problem and the actual patch fixes the problem.
          Hide
          Thiruvalluvan M. G. added a comment -

          Committed revision 903335.

          Show
          Thiruvalluvan M. G. added a comment - Committed revision 903335.
          Hide
          Philip Zeyliger added a comment -

          Thiru,

          Did you forget to commit the test as well? Please also check that it has ASF license (the attached patch doesn't).

          Thanks!

          – Philip

          Show
          Philip Zeyliger added a comment - Thiru, Did you forget to commit the test as well? Please also check that it has ASF license (the attached patch doesn't). Thanks! – Philip
          Hide
          Thiruvalluvan M. G. added a comment -

          Thanks Philip for pointing it out. I added the tests with ASF licence. Committed revision 903351.

          Show
          Thiruvalluvan M. G. added a comment - Thanks Philip for pointing it out. I added the tests with ASF licence. Committed revision 903351.

            People

            • Assignee:
              Thiruvalluvan M. G.
              Reporter:
              Thiruvalluvan M. G.
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development