bruno       2003/05/06 02:15:46

  Modified:    src/java/org/apache/cocoon/transformation
                        TraxTransformer.java
  Log:
  Fixed NPE in recycle().
  
  Revision  Changes    Path
  1.4       +2 -2      
cocoon-2.0/src/java/org/apache/cocoon/transformation/TraxTransformer.java
  
  Index: TraxTransformer.java
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.0/src/java/org/apache/cocoon/transformation/TraxTransformer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TraxTransformer.java      2 May 2003 15:34:12 -0000       1.3
  +++ TraxTransformer.java      6 May 2003 09:15:46 -0000       1.4
  @@ -560,7 +560,7 @@
             this.inputSource = null;
           }
           this.par = null;
  -        if (this.finishedDocument == false) {
  +        if (this.finishedDocument == false && transformerHandler != null) {
               // This situation will only occur if an exception occured during 
pipeline execution.
               // If Xalan is used in incremental mode, it is important that 
endDocument is called, otherwise
               // the thread on which it runs the transformation will keep 
waiting.
  
  
  

Reply via email to