Skip to content

Instantly share code, notes, and snippets.

@wapcaplet
Created September 4, 2012 19:45
Show Gist options
  • Save wapcaplet/3625559 to your computer and use it in GitHub Desktop.
Save wapcaplet/3625559 to your computer and use it in GitHub Desktop.
Works fine, no errors:
Neo4j::Transaction.run do |tx|
@publish_set.status = 'published'
end
Neo4j::Transaction.run do |tx|
@publish_set.publish!(false)
end
But if there's a transaction that doesn't modify anything:
Neo4j::Transaction.run do |tx|
puts "hello"
end
Neo4j::Transaction.run do |tx|
@publish_set.publish!(false)
end
The second transaction raises "NoMethodError: undefined method `_java_node' for nil:NilClass"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment