Thomas Feiner created HTTPCLIENT-1761:
-----------------------------------------
Summary: Missing null check in parse method
Key: HTTPCLIENT-1761
URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1761
Project: HttpComponents HttpClient
Issue Type: Bug
Reporter: Thomas Feiner
While the method
```
public static List<NameValuePair> parse(String s, Charset charset, char...
separators)
```
has a null check for String "s", this method has not
```
public static List<NameValuePair> parse(String s, Charset charset)
```
For consistency and backward compatibility reasons I recommend adding a null
check there.
Furthermore I would delegate to the method with separators:
```
public static List<NameValuePair> parse(String s, Charset charset) {
return SafeURLEncodedUtils.parse(s, charset, '&', ';');
}
```
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]