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

Brian Stansberry brian.stansberry at jboss.com
Mon May 28 17:29:21 EDT 2007


  User: bstansberry
  Date: 07/05/28 17:29:21

  Modified:    src/org/jboss/cache  CacheImpl.java
  Log:
  Aovid NPE if we get a view after notifier is nulled in destroy
  
  Revision  Changes    Path
  1.80      +1 -1      JBossCache/src/org/jboss/cache/CacheImpl.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CacheImpl.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/CacheImpl.java,v
  retrieving revision 1.79
  retrieving revision 1.80
  diff -u -b -r1.79 -r1.80
  --- CacheImpl.java	27 May 2007 15:21:54 -0000	1.79
  +++ CacheImpl.java	28 May 2007 21:29:21 -0000	1.80
  @@ -3631,7 +3631,7 @@
               coordinator = (members.size() != 0 && members.get(0).equals(getLocalAddress()));
   
               // now notify listeners - *after* updating the coordinator. - JBCACHE-662
  -            if (needNotification)
  +            if (needNotification && notifier != null)
               {
                  InvocationContext ctx = getInvocationContext();
                  notifier.notifyViewChange(new_view, ctx, true);
  
  
  



More information about the jboss-cvs-commits mailing list