You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2003/09/04 17:21:20 UTC

cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/publication DefaultSiteTree.java

andreas     2003/09/04 08:21:20

  Modified:    src/java/org/apache/lenya/cms/publication
                        DefaultSiteTree.java
  Log:
  checking id attribute for ""
  
  Revision  Changes    Path
  1.32      +4 -3      cocoon-lenya/src/java/org/apache/lenya/cms/publication/DefaultSiteTree.java
  
  Index: DefaultSiteTree.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/publication/DefaultSiteTree.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- DefaultSiteTree.java	31 Aug 2003 13:02:24 -0000	1.31
  +++ DefaultSiteTree.java	4 Sep 2003 15:21:20 -0000	1.32
  @@ -206,7 +206,8 @@
                   if (attributes != null) {
                       Node idAttribute = attributes.getNamedItem("id");
   
  -                    if ((idAttribute != null)
  +                    if (idAttribute != null
  +                        && !"".equals(idAttribute)
                           && idAttribute.getNodeValue().equals(ids.get(0))) {
                           return findNode(
                               nodes.item(i),
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org