Skip to content

Commit

Permalink
Fix for NPE in commit relationships on NodeImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
tinwelint authored and systay committed Jul 27, 2011
1 parent 99bb712 commit 0f9ae2f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kernel/src/main/java/org/neo4j/kernel/impl/core/NodeImpl.java
Expand Up @@ -597,8 +597,11 @@ protected void commitRelationshipMaps(
continue;
}
RelIdArray src = getRelIdArray( type );
RelIdArray remove = cowRelationshipRemoveMap.get( type );
putRelIdArray( RelIdArray.from( src, null, remove ) );
if ( src != null )
{
RelIdArray remove = cowRelationshipRemoveMap.get( type );
putRelIdArray( RelIdArray.from( src, null, remove ) );
}
}
}
}
Expand Down

0 comments on commit 0f9ae2f

Please sign in to comment.