Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad null argument handling #19

Closed
EQuincerot opened this issue Apr 11, 2017 · 1 comment
Closed

Bad null argument handling #19

EQuincerot opened this issue Apr 11, 2017 · 1 comment

Comments

@EQuincerot
Copy link
Contributor

If you do so:

def myMethod(String foo) {
  return 'bar'
}

myMethod null

Then you get : java.lang.IllegalArgumentException: wrong number of arguments.
We need a way to make the difference between a null value of an argument and its non-existence.

@filipef9
Copy link

filipef9 commented Dec 18, 2017

Hi,
I code a step:

def call(Map vars) {
...
}

When I call:

myStep(null)

Then I am still getting: java.lang.IllegalArgumentException: wrong number of arguments.
I've tested with versions 1.0 and 1.1.
I've tested with the same original sample of this issue, and the problem still happens.

@ozangunalp Can you check this for me? (please)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants