Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-588

Generated .equals method throws NPE for thrift object

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.2
    • Java - Compiler
    • None

    Description

      In the generated code for thrift objects, the .equals(Tbase other) method can throw a NullPointerException if other is null. This happens if other is null or a field accessed in other is null.

      Attachments

        1. thrift-588.patch
          1 kB
          Bryan Duxbury

        Activity

          People

            bryanduxbury Bryan Duxbury
            mnshah Manish Shah
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: