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

NPE when the value of map's key is null

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            dugenkui dugenkui

            Dates

              Created:
              Updated:

              Time Tracking

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

                Issue deployment