File tree Expand file tree Collapse file tree
main/java/org/jsoup/helper
test/java/org/jsoup/helper Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1434,7 +1434,7 @@ public String value() {
14341434
14351435 @ Override
14361436 public KeyVal inputStream (InputStream inputStream ) {
1437- Validate .notNullParam (value , "inputStream" );
1437+ Validate .notNullParam (inputStream , "inputStream" );
14381438 this .stream = inputStream ;
14391439 return this ;
14401440 }
Original file line number Diff line number Diff line change @@ -291,6 +291,8 @@ public void caseInsensitiveHeaders(Locale locale) {
291291 assertEquals ("file" , kv .key ());
292292 assertEquals ("thumb.jpg" , kv .value ());
293293 assertTrue (kv .hasInputStream ());
294+ assertThrows (ValidationException .class , () ->
295+ HttpConnection .KeyVal .create ("file" , "thumb.jpg" ).inputStream (null ));
294296
295297 kv = HttpConnection .KeyVal .create ("one" , "two" );
296298 assertEquals ("one" , kv .key ());
You can’t perform that action at this time.
0 commit comments