You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2001/11/05 12:36:03 UTC

cvs commit: xml-cocoon2/src/org/apache/cocoon/reading ResourceReader.java

cziegeler    01/11/05 03:36:03

  Modified:    src/org/apache/cocoon/reading ResourceReader.java
  Log:
  More NPE fixes
  
  Revision  Changes    Path
  1.12      +5 -3      xml-cocoon2/src/org/apache/cocoon/reading/ResourceReader.java
  
  Index: ResourceReader.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/reading/ResourceReader.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- ResourceReader.java	2001/10/11 07:28:22	1.11
  +++ ResourceReader.java	2001/11/05 11:36:03	1.12
  @@ -31,7 +31,7 @@
   /**
    *
    * @author <a href="mailto:Giacomo.Pati@pwr.ch">Giacomo Pati</a>
  - * @version CVS $Revision: 1.11 $ $Date: 2001/10/11 07:28:22 $
  + * @version CVS $Revision: 1.12 $ $Date: 2001/11/05 11:36:03 $
    *
    * The <code>ResourceReader</code> component is used to serve binary data
    * in a sitemap pipeline. It makes use of HTTP Headers to determine if
  @@ -73,8 +73,10 @@
   
       public void recycle() {
           super.recycle();
  -        this.inputSource.recycle();
  -        this.inputSource = null;
  +        if (this.inputSource != null) {
  +            this.inputSource.recycle();
  +            this.inputSource = null;
  +        }
       }
   
       /**
  
  
  

----------------------------------------------------------------------
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