weaver      2003/08/04 08:45:39

  Modified:    portal/src/java/org/apache/jetspeed/services/entity
                        PortletEntityServiceImpl.java
  Log:
  Fixed a big, dumb NPE in PortletnEntityServicesImpl caused by your truly.
  
  Revision  Changes    Path
  1.3       +3 -2      
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/services/entity/PortletEntityServiceImpl.java
  
  Index: PortletEntityServiceImpl.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/services/entity/PortletEntityServiceImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PortletEntityServiceImpl.java     3 Aug 2003 15:01:07 -0000       1.2
  +++ PortletEntityServiceImpl.java     4 Aug 2003 15:45:38 -0000       1.3
  @@ -108,9 +108,10 @@
   
           if (entityCache.containsKey(portletEntity.getId()))
           {
  +            ObjectID oid = portletEntity.getId();
               // Speed GC object reclaimation.
               portletEntity = null;
  -            return (PortletEntity) entityCache.get(portletEntity.getId());
  +            return (PortletEntity) entityCache.get(oid);
           }
           else
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to