cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/reading ResourceReader.java
Date Mon, 05 Nov 2001 11:36:03 GMT
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


Mime
View raw message