cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/components CocoonComponentSelector.java
Date Fri, 16 Mar 2001 20:13:33 GMT
bloritsch    01/03/16 12:13:33

  Modified:    src/org/apache/cocoon/components Tag: xml-cocoon2
                        CocoonComponentSelector.java
  Log:
  Handle null pointer exceptions
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.3   +3 -1      xml-cocoon/src/org/apache/cocoon/components/Attic/CocoonComponentSelector.java
  
  Index: CocoonComponentSelector.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/components/Attic/CocoonComponentSelector.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- CocoonComponentSelector.java	2001/03/16 20:01:50	1.1.2.2
  +++ CocoonComponentSelector.java	2001/03/16 20:13:29	1.1.2.3
  @@ -36,7 +36,7 @@
   /** Default component manager for Cocoon's non sitemap components.
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
    * @author <a href="mailto:paul@luminas.co.uk">Paul Russell</a>
  - * @version CVS $Revision: 1.1.2.2 $ $Date: 2001/03/16 20:01:50 $
  + * @version CVS $Revision: 1.1.2.3 $ $Date: 2001/03/16 20:13:29 $
    */
   public class CocoonComponentSelector implements Contextualizable, ComponentSelector, Composer,
Configurable, ThreadSafe, Loggable {
   
  @@ -133,7 +133,9 @@
       }
   
       public void release(Component component) {
  +        if (component == null) return;
           CocoonComponentHandler handler = (CocoonComponentHandler) this.componentMapping.get(component);
  +        if (handler == null) return;
           handler.put(component);
           this.componentMapping.remove(component);
       }
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message