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

panic with nil interface{} #35

Closed
adamglt opened this issue Nov 16, 2018 · 0 comments
Closed

panic with nil interface{} #35

adamglt opened this issue Nov 16, 2018 · 0 comments

Comments

@adamglt
Copy link

adamglt commented Nov 16, 2018

This is actually a bug in gobolt, but there's no way to open an issue there:

var niltime *time.Time
params := M{"props": M{"name": "hello", "bla1": niltime}}
q := `
CREATE (b: Bla $props)
RETURN properties(b)
`

Causes panic: reflect: call of reflect.Value.Interface on zero Value.

This is a pretty common case when mapping from domain structs to map[string]interface{}.

opened a PR there: neo4j-drivers/gobolt#1

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