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

NPE in UrlEncodedFormEntity constructors without charsets

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.2 Final
    • 4.2.1
    • HttpClient (classic)
    • None

    Description

      The two constructors of UrlEncodedFormEntity without charset parameters throw a NPE.
      This is a regression from 4.1.x.

      Here is a test simple case :

      List<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();
      params.add(new BasicNameValuePair("test", "test"));
      new UrlEncodedFormEntity(params);
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            clement.denis Clément Denis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: