Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.3.1, 4.3.3
-
None
Description
public StringBody(final String text, final ContentType contentType)
This constructor throws NPE on text.getBytes(Charset) if passed text is null.
Also, this constructor lacks javadoc.
I think that is should handle null text gracefully, or throw IllegalArgumentException like it's documented on other constructors in case of null text.