Results 1 to 3 of 3

Thread: equals/hashcode raises NPE in Advanced Mapping Mode

  1. #1
    Join Date
    Dec 2006
    Posts
    6

    Default 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 at 02:53 AM.

  2. #2
    Join Date
    Jan 2011
    Location
    Dresden, Germany
    Posts
    525

    Default

    Thanks, will look into this next week.

    Michael

  3. #3
    Join Date
    Jan 2011
    Location
    Dresden, Germany
    Posts
    525

    Default

    Fixed in master.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •