Return-Path: Delivered-To: apmail-xml-cocoon-cvs-archive@xml.apache.org Received: (qmail 59031 invoked by uid 500); 5 Nov 2001 11:47:21 -0000 Mailing-List: contact cocoon-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: cocoon-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cocoon-cvs@xml.apache.org Received: (qmail 59022 invoked by uid 500); 5 Nov 2001 11:47:21 -0000 Delivered-To: apmail-xml-cocoon2-cvs@apache.org Date: 5 Nov 2001 11:36:19 -0000 Message-ID: <20011105113619.41098.qmail@icarus.apache.org> From: cziegeler@apache.org To: xml-cocoon2-cvs@apache.org Subject: cvs commit: xml-cocoon2/src/org/apache/cocoon/reading ResourceReader.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 Giacomo Pati - * @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 ResourceReader 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: 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