cziegeler    01/11/05 03:36:19

  Modified:    src/org/apache/cocoon/reading Tag: cocoon_20_branch
                        ResourceReader.java
  Log:
  More NPE fixes
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.3.2.9   +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.3.2.8
  retrieving revision 1.3.2.9
  diff -u -r1.3.2.8 -r1.3.2.9
  --- ResourceReader.java       2001/10/11 08:56:13     1.3.2.8
  +++ ResourceReader.java       2001/11/05 11:36:19     1.3.2.9
  @@ -31,7 +31,7 @@
   /**
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Giacomo Pati</a>
  - * @version CVS $Revision: 1.3.2.8 $ $Date: 2001/10/11 08:56:13 $
  + * @version CVS $Revision: 1.3.2.9 $ $Date: 2001/11/05 11:36:19 $
    *
    * 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:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to