Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1807

NullPointerException in URLEncodedUtils.parse(String, Charset)

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.5.3
    • 4.5.3
    • HttpClient (classic)
    • None

    Description

      Hi,

      When the String argument s that is passed to the method URLEncodedUtils.parse(String, Charset) is null, this method throws a NullPointerException.
      It seems to need a null check like in the method URLEncodedUtils.parse(String, Charset, char...).

      Kind regards,
      Bart

      Attachments

        Issue Links

        Activity

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

          People

            Unassigned Unassigned
            bdeneuter Bart De Neuter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment