[jboss-cvs] JBossCache/src/org/jboss/cache/interceptors ...

Manik Surtani msurtani at jboss.com
Wed Jan 3 17:42:31 EST 2007


  User: msurtani
  Date: 07/01/03 17:42:31

  Modified:    src/org/jboss/cache/interceptors 
                        NotificationInterceptor.java
  Log:
  Added null check
  
  Revision  Changes    Path
  1.3       +12 -4     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.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- NotificationInterceptor.java	3 Jan 2007 18:12:02 -0000	1.2
  +++ NotificationInterceptor.java	3 Jan 2007 22:42:31 -0000	1.3
  @@ -34,11 +34,19 @@
                  // invoke notifications
                  List<MethodCall> events = ctx.getCacheListenerEvents();
                  TransactionEntry entry = txTable.get(ctx.getGlobalTransaction());
  +               if (entry != null)
  +               {
                  entry.addCacheListenerEvents(events);
  +
                  if (log.isTraceEnabled())
                     log.trace("Invoking notifications for this transaction.  Notification set: " + entry.getCacheListenerEvents());
                  n.invokeQueuedNotifications(entry.getCacheListenerEvents());
               }
  +               else
  +               {
  +                  log.trace("Committing but cache entry is null.");
  +               }
  +            }
            }
            else
            {
  
  
  



More information about the jboss-cvs-commits mailing list