-
Notifications
You must be signed in to change notification settings - Fork 27
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
apoc.merge.node returns java.lang.NullPointerException on "name" #475
Comments
Thanks for reporting this. We will come back to you once we had a look. |
Hi. Thanks again for reporting this. The problem in your query is that some of the labels passed into apoc.merge.nodes are null. You could add an additional check similar to this snippet here:
While this behavior won't change, we will fix the code to return a proper error message. |
thanks Nadja, I'd over simplified the test json, but in the real code, it was indeed because twJson.label and twJson.labelOrigin were null that the whole thing broke. a message saying labels have null value will definitely be more helpful ! |
apoc.merge.node returns
java.lang.NullPointerException on "name"
when there is no "name" property in the datahere is the bug reproduced in Neo4j browser, with this test file (remove txt extension)
followers.test.json.txt
debug.log says this, but not at the time the above query was run
Versions
The text was updated successfully, but these errors were encountered: