lib/neo4j/node.rb in neo4j-1.0.0.beta.15 vs lib/neo4j/node.rb in neo4j-1.0.0.beta.16

- old
+ new

@@ -116,9 +116,10 @@ end # Same as load but does not return the node as a wrapped Ruby object. # def _load(node_id, db) + return nil if node_id.nil? db.graph.get_node_by_id(node_id.to_i) rescue java.lang.IllegalStateException nil # the node has been deleted rescue org.neo4j.graphdb.NotFoundException nil