ParameterException: NullPointerException: null while processing argument at or before arg[0] (was: commandLine.parseArgs("--item=");
and commandLine.parseArgs("--item", "");
should behave identically, but current; they don't)
#1998
Labels
Milestone
I've been wanting to remove my own Converter now that #1993 is implemented, but I found that there is a difference in behavior when I use the converter and when I do not use it.
--item
in the reproducer below does not use converter (and does not pass one of the tests, while--item2
uses converter and both tests pass.What I need to accomplish is that
commandLine.parseArgs("--item=", "--item", "pepa");
parses into["", "pepa"]
, but actually, the parsing throws an exception (see bottom of the post for the printout).I can get the desired behavior when I specify the argument as
commandLine.parseArgs("--item", "");
, but I do need to support the former syntax with the=
as well.See
void test_item__empty_equals() {
which is the failing test.Exception from
test_item__empty_equals()
Logs are
The text was updated successfully, but these errors were encountered: