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 2002/06/04 09:54:21 UTC

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

cziegeler    2002/06/04 00:54:21

  Modified:    src/java/org/apache/cocoon/generation FileGenerator.java
  Log:
  Avoid NPE
  
  Revision  Changes    Path
  1.14      +5 -3      xml-cocoon2/src/java/org/apache/cocoon/generation/FileGenerator.java
  
  Index: FileGenerator.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/generation/FileGenerator.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- FileGenerator.java	4 Jun 2002 07:31:52 -0000	1.13
  +++ FileGenerator.java	4 Jun 2002 07:54:21 -0000	1.14
  @@ -73,7 +73,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 $Id: FileGenerator.java,v 1.13 2002/06/04 07:31:52 cziegeler Exp $
  + * @version CVS $Id: FileGenerator.java,v 1.14 2002/06/04 07:54:21 cziegeler Exp $
    */
   public class FileGenerator extends ComposerGenerator
   implements CacheableProcessingComponent {
  @@ -86,8 +86,10 @@
        * All instance variables are set to <code>null</code>.
        */
       public void recycle() {
  -        super.resolver.release( this.inputSource );
  -        this.inputSource = null;
  +        if ( null != this.inputSource ) {
  +            super.resolver.release( this.inputSource );
  +            this.inputSource = null;
  +        }
           super.recycle();
       }
   
  
  
  

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