Announcement Announcement Module
Collapse
No announcement yet.
equals/hashcode raises NPE in Advanced Mapping Mode Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • equals/hashcode raises NPE in Advanced Mapping Mode

    Hi,
    I'm 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. Is this a known feature/bug ?
    Thanks

    Code:
    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)

    edit:
    issue : https://github.com/SpringSource/spri...eo4j/issues/40
    Last edited by c_inconnu; Mar 9th, 2012, 03:53 AM.

  • #2
    Thanks, will look into this next week.

    Michael

    Comment


    • #3
      Fixed in master.

      Comment

      Working...
      X