cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ovidiu Predescu <ovi...@cup.hp.com>
Subject [C2.1] NPE fix in certain conditions in ServerPagesGenerator.java
Date Tue, 09 Oct 2001 21:48:05 GMT
This fixes some problems in ServerPagesGenerator.java.

diff -ruN -x *CVS* -x *build* -x *ChangeLog* -x *README.hp* -I \$Id:.*\$ -I \$Revision:.*\$
-I \$Author:.*\$ xml-cocoon2/src/org/apache/cocoon/generation/ServerPagesGenerator.java Cocoon2/src/org/apache/cocoon/generation/ServerPagesGenerator.java
--- xml-cocoon2/src/org/apache/cocoon/generation/ServerPagesGenerator.java	Wed Aug 22 15:26:36
2001
+++ Cocoon2/src/org/apache/cocoon/generation/ServerPagesGenerator.java	Mon Oct  8 11:49:59
2001
@@ -441,7 +441,8 @@
         if (generator != null)
             programGenerator.release(generator);
         this.generator = null;
-        this.inputSource.recycle();
+        if (inputSource != null)
+          this.inputSource.recycle();
         this.inputSource = null;
         this.eventStack.clear();
     }


Greetings,
-- 
Ovidiu Predescu <ovidiu@cup.hp.com>
http://orion.rgv.hp.com/ (inside HP's firewall only)
http://sourceforge.net/users/ovidiu/ (my SourceForge page)
http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, other stuff)

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message