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

Avoid Defaulted AssertNotNull when there are no variables to pass with query #27

Closed
michaelschlies opened this issue Dec 18, 2019 · 1 comment

Comments

@michaelschlies
Copy link

Map<String,Object> variables = (Map<String,Object>) payload.get("variables");

This line should look more like
Map<String,Object> variables = (Map<String,Object>) payload.getOrDefault("variables", new HashMap<String, Object>()) to avoid an AssertNotNullException in GraphQL handling.

@mariogarcia
Copy link
Contributor

I'm fixing this now. I'm taking your changes and adding a test to it. Thanks @michaelschlies ! I'm releasing a new version during the weekend.

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 a pull request may close this issue.

2 participants