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 2004/08/16 14:22:42 UTC

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

andreas     2004/08/16 05:22:42

  Modified:    src/java/org/apache/lenya/cms/publication
                        DefaultSiteTree.java
  Log:
  fixed nullpointer deference
  
  Revision  Changes    Path
  1.45      +2 -2      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.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- DefaultSiteTree.java	23 Apr 2004 16:41:48 -0000	1.44
  +++ DefaultSiteTree.java	16 Aug 2004 12:22:42 -0000	1.45
  @@ -531,7 +531,7 @@
               refDocumentId);
           newParent = this.getNode(parentId + "/" + id);
           if (newParent == null) {
  -            throw new SiteTreeException("The added node  " + newParent.toString() + " not found");
  +            throw new SiteTreeException("The added node was not found.");
           }
           SiteTreeNode[] children = subtreeRoot.getChildren();
           if (children == null) {
  
  
  

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