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

NPE when the value of map's key is null

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Java - Library
    • Labels:
      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

              • Assignee:
                Unassigned
                Reporter:
                dugenkui dugenkui
              • Votes:
                0 Vote for this issue
                Watchers:
                1 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