cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components/source/impl SitemapSource.java
Date Sat, 07 Jun 2003 20:49:24 GMT
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);
  
  
  

Mime
View raw message