Skip to content

Fix nil panic in UniqueOperationNamesRule with two anonymous operations #147

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

Closed
wants to merge 1 commit into from

Conversation

titanous
Copy link
Contributor

node.Name is nil when the operation is anonymous. Use the parent AST node instead in this case.

Found with go-fuzz.

node.Name is nil when the operation is anonymous. Use the parent AST
node instead in this case.

Found with go-fuzz.

Signed-off-by: Jonathan Rudenberg <[email protected]>
@coveralls
Copy link

coveralls commented Jul 18, 2016

Coverage Status

Coverage increased (+0.008%) to 90.762% when pulling ab875bc on titanous:fix-unique-name-nil into 491504a on graphql-go:master.

@chris-ramon
Copy link
Member

closing this one in favor of #224 — thanks a lot @titanous

@chris-ramon chris-ramon closed this Aug 5, 2017
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.

3 participants