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

Exception raised when getting related nodes (and receiver node has no relationships) #69

Closed
CountCulture opened this issue Nov 24, 2012 · 1 comment

Comments

@CountCulture
Copy link

I've only just started playing around with Neography (and Neo4J), so not sure if this expected behaviour, but if I do the following:

node = Neography::Node.create("age" => 31, "name" => "Max")
node.both.size #or any array-type functions

I get

NoMethodError: undefined method `collect' for nil:NilClass

This appears to be caused by this line:

return nil if node_relationships.empty?

which is expected to be something that responds to collect.

Happy to do a spec/patch/pull request if this is a bug rather than expected behaviour

@rdvdijk
Copy link
Collaborator

rdvdijk commented Jan 18, 2013

Seems to me that this is a bug. Would you agree, @maxdemarzi ?

willkessler pushed a commit to willkessler/neography that referenced this issue Apr 21, 2014
bringing active model dirty back to check for changed attributes
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

3 participants