The HTTP Client API specifies that a NullPointerException will be thrown when null is passed as an argument, expect where explicitly specified. This issue adds correct null arg checking where necessary, which is needed for spec conformance.
http://cr.openjdk.java.net/~chegar/8193698/ -Chris. [1] https://bugs.openjdk.java.net/browse/JDK-8193698