[jboss-cvs] JBossCache/src/org/jboss/cache/interceptors ...
Elias Ross
genman at noderunner.net
Sat Nov 25 13:40:18 EST 2006
User: genman
Date: 06/11/25 13:40:18
Modified: src/org/jboss/cache/interceptors
OptimisticValidatorInterceptor.java
Log:
JBCACHE-867 fix regression in opt tree node
Revision Changes Path
1.44 +2 -0 JBossCache/src/org/jboss/cache/interceptors/OptimisticValidatorInterceptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: OptimisticValidatorInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/interceptors/OptimisticValidatorInterceptor.java,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -b -r1.43 -r1.44
--- OptimisticValidatorInterceptor.java 21 Nov 2006 08:36:10 -0000 1.43
+++ OptimisticValidatorInterceptor.java 25 Nov 2006 18:40:18 -0000 1.44
@@ -197,6 +197,8 @@
{
cache.getNotifier().notifyNodeRemoved(dNode.getFqn(), true, dNode.getNodeSPI().getRawData());
DataNode parent = (DataNode) dNode.getParent();
+ if (parent == null)
+ throw new IllegalStateException("dNode " + dNode + " has no parent");
parent.removeChild(dNode.getFqn().getLast());
cache.getNotifier().notifyNodeRemoved(dNode.getFqn(), false, null);
}
More information about the jboss-cvs-commits
mailing list