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

NPE when the value of map's key is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Java - Library
    • None

    Description

      When the value of map is null, there seem always occurs NPE in the implements of TProtocol.java.

      @Override
      public void writeString(String str) throws TException {
        byte[] dat = str.getBytes(StandardCharsets.UTF_8);
        writeI32(dat.length);
        trans_.write(dat, 0, dat.length);
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dugenkui dugenkui
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m