Skip to content

Fix regression: if null is passed as parameter to a resolver method, … #462

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

Merged
merged 1 commit into from
Dec 8, 2020

Conversation

lburja
Copy link
Contributor

@lburja lburja commented Dec 2, 2020

…use Java default value

Fixes #461

Checklist

  • Pull requests follows the contribution guide
  • New or modified functionality is covered by tests

Description

Fixed MethodFieldResolver class, where a regression was introduced as part of some recent commits.
I've added a unit test that demonstrates the expected behavior

@lburja
Copy link
Contributor Author

lburja commented Dec 5, 2020

@vojtapol, could you please take a look at this pull request? It basically reverts a condition to what it was one month ago, and adds a unit test for the bug.

@vojtapol
Copy link
Member

vojtapol commented Dec 5, 2020

Yup. As soon as I can.

@vojtapol
Copy link
Member

vojtapol commented Dec 7, 2020

@alexandreBaronZnk Could you please review this PR as well? It seems that #453 brought in this bug. I just want to make sure this change does not break your original use case.

Copy link
Contributor

@alexandreBaronZnk alexandreBaronZnk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks @lburja for the fix.

@vojtapol vojtapol merged commit 6ec3320 into graphql-java-kickstart:master Dec 8, 2020
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

Successfully merging this pull request may close these issues.

Regression when invoking resolver methods that have arguments of primitive type
3 participants