bruno 2003/06/07 13:49:24
Modified: src/java/org/apache/cocoon/components/source/impl SitemapSource.java Log: Make sure that the variable "systemIdForCaching" always gets initialised, otherwise getURI() could return null. This could happen in case of an exception, e.g. when there's no pipeline matching the sitemap source. Revision Changes Path 1.6 +2 -1 cocoon-2.1/src/java/org/apache/cocoon/components/source/impl/SitemapSource.java Index: SitemapSource.java =================================================================== RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/components/source/impl/SitemapSource.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- SitemapSource.java 30 May 2003 09:23:14 -0000 1.5 +++ SitemapSource.java 7 Jun 2003 20:49:24 -0000 1.6 @@ -349,6 +349,7 @@ * Initialize */ protected void init() { + this.systemIdForCaching = this.systemId; try { this.processKey = CocoonComponentManager.startProcessing(this.environment); this.environment.setURI(this.prefix, this.uri);