[jboss-cvs] JBossCache/src/org/jboss/cache/interceptors ...
Manik Surtani
msurtani at jboss.com
Thu Feb 1 12:02:31 EST 2007
User: msurtani
Date: 07/02/01 12:02:31
Modified: src/org/jboss/cache/interceptors
NotificationInterceptor.java
Log:
Added null chk
Revision Changes Path
1.4 +10 -3 JBossCache/src/org/jboss/cache/interceptors/NotificationInterceptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: NotificationInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/interceptors/NotificationInterceptor.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- NotificationInterceptor.java 3 Jan 2007 22:42:31 -0000 1.3
+++ NotificationInterceptor.java 1 Feb 2007 17:02:31 -0000 1.4
@@ -53,11 +53,18 @@
// a "normal" method in the transaction. Add notifications to transaction entry.
List<MethodCall> events = ctx.getCacheListenerEvents();
TransactionEntry entry = txTable.get(ctx.getGlobalTransaction());
+ if (entry == null)
+ {
+ log.warn("Transaction entry for " + ctx.getGlobalTransaction() + " is null?");
+ }
+ else
+ {
if (log.isTraceEnabled()) log.trace("Adding " + events + " to transaction entry's notification list");
entry.addCacheListenerEvents(events);
ctx.clearCacheListenerEvents();
}
}
+ }
else
{
// fire all queued up notifications now.
More information about the jboss-cvs-commits
mailing list