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

"Runtime error: Nil pointer reference" while serializing null string pointer #365

Closed
dreamer-89-zz opened this issue Jul 23, 2018 · 1 comment

Comments

@dreamer-89-zz
Copy link

Do we need to add null pointer handling in graphql/scalers.go ?

func coerceString(value interface{}) interface{} {
if v, ok := value.(*string); ok {
return *v
}
return fmt.Sprintf("%v", value)
}

@dreamer-89-zz dreamer-89-zz changed the title "Runtime error: Nil pointer reference" while passing while serializing null string pointer "Runtime error: Nil pointer reference" while serializing null string pointer Jul 23, 2018
@chris-ramon
Copy link
Member

Thanks a lot for filing the issue @dreamer-89 — this was addressed via: #369, so closing the issue.

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

2 participants