giacomo     00/10/30 10:39:18

  Modified:    src/org/apache/cocoon/sitemap Tag: xml-cocoon2
                        AbstractSitemap.java
  Log:
  Fixed a bug to the substitute method. It is possible that this method gets a 
null expr as parameter.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.13  +3 -1      
xml-cocoon/src/org/apache/cocoon/sitemap/Attic/AbstractSitemap.java
  
  Index: AbstractSitemap.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon/src/org/apache/cocoon/sitemap/Attic/AbstractSitemap.java,v
  retrieving revision 1.1.2.12
  retrieving revision 1.1.2.13
  diff -u -r1.1.2.12 -r1.1.2.13
  --- AbstractSitemap.java      2000/10/19 14:44:17     1.1.2.12
  +++ AbstractSitemap.java      2000/10/30 18:39:17     1.1.2.13
  @@ -31,7 +31,7 @@
    * Base class for generated <code>Sitemap</code> classes
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Giacomo Pati</a>
  - * @version CVS $Revision: 1.1.2.12 $ $Date: 2000/10/19 14:44:17 $
  + * @version CVS $Revision: 1.1.2.13 $ $Date: 2000/10/30 18:39:17 $
    */
   public abstract class AbstractSitemap implements Sitemap {
   
  @@ -108,6 +108,8 @@
         */
       protected String substitute (List list, String expr)
       throws PatternException, NumberFormatException {
  +        if (expr == null)
  +            return null;
           StringBuffer result = new StringBuffer();
           String s = null;
           int j = 0;
  
  
  

Reply via email to