SpringSource/spring-data-neo4j — Issue #40: equals/hashcode raises NPE in Advanced Mapping Mode 
Author: ddidier
Created: 2012-03-08 13:06:28+00:00
State: open

After upgrading to SDNeo4j 2.0 from 1.1, some of my unit tests are now failing because of equals/hashcode raising a NPE. Although this only happens when I'm not using a Spring context, I think these methods should have a default fallback in this case, since the model can be used without spring

java.lang.NullPointerException
at org.springframework.data.neo4j.aspects.support.node.Neo4jNodeBacking.entityStateHandler(Neo4jNodeBacking.aj:238)
at org.springframework.data.neo4j.aspects.support.node.Neo4jNodeBacking.ajc$interMethod$org_springframework_data_neo4j_aspects_support_node_Neo4jNodeBacking$org_springframework_data_neo4j_aspects_core_NodeBacked$equals(Neo4jNodeBacking.aj:234)
at xxx.model.Access.equals(Access.java:1)