Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
In 4.2 and 4.3, URLEncodedUtils.parse(String, CharSet) returns an empty List for a null String input.
In 4.4, URLEncodedUtils.parse(null, Charset.forName("UTF-8")) throws an NullPointerException.
For the sake of API backward compatibility, parse(String, CharSet) should return an empty list.
Note that parse(String, CharSet, char...) does the null check and returns an empty list. I think parse(String, CharSet) should have the same behavior.
Attachments
Issue Links
- is duplicated by
-
HTTPCLIENT-1761 Missing null check in parse method
- Resolved
-
HTTPCLIENT-1807 NullPointerException in URLEncodedUtils.parse(String, Charset)
- Resolved