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 10:27:35 UTC

cvs commit: xml-cocoon2/src/org/apache/cocoon/generation FileGenerator.java

cziegeler    01/11/05 01:27:35

  Modified:    src/org/apache/cocoon/generation Tag: cocoon_20_branch
                        FileGenerator.java
  Log:
  NPE fix
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.9.2.17  +5 -3      xml-cocoon2/src/org/apache/cocoon/generation/FileGenerator.java
  
  Index: FileGenerator.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/generation/FileGenerator.java,v
  retrieving revision 1.9.2.16
  retrieving revision 1.9.2.17
  diff -u -r1.9.2.16 -r1.9.2.17
  --- FileGenerator.java	2001/10/11 08:56:12	1.9.2.16
  +++ FileGenerator.java	2001/11/05 09:27:35	1.9.2.17
  @@ -33,7 +33,7 @@
    * @author <a href="mailto:fumagalli@exoffice.com">Pierpaolo Fumagalli</a>
    *         (Apache Software Foundation, Exoffice Technologies)
    * @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
  - * @version CVS $Revision: 1.9.2.16 $ $Date: 2001/10/11 08:56:12 $
  + * @version CVS $Revision: 1.9.2.17 $ $Date: 2001/11/05 09:27:35 $
    */
   public class FileGenerator extends ComposerGenerator
   implements Cacheable, Recyclable {
  @@ -55,8 +55,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