Skip to content

Commit

Permalink
Empty argument tag should add empty string instead of null (#150)
Browse files Browse the repository at this point in the history
* empty argument tag should add empty string instead of null

* update function call style to match rest of code
  • Loading branch information
Anders-E committed Aug 19, 2020
1 parent b03e75c commit d0e13ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/codehaus/mojo/exec/ExecMojo.java
Expand Up @@ -676,6 +676,10 @@ else if ( isLongModulePathArgument( specialArg ) || isLongClassPathArgument( spe
{
specialArg = (String) argument;
}
else if (argument == null)
{
commandArguments.add( "" );
}
else
{
commandArguments.add( (String) argument );
Expand Down

0 comments on commit d0e13ba

Please sign in to comment.