lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ed...@apache.org
Subject cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/publication Publication.java
Date Fri, 08 Aug 2003 08:17:57 GMT
edith       2003/08/08 01:17:57

  Modified:    src/java/org/apache/lenya/cms/publication Publication.java
  Log:
  instancierung of the sitetree HashMap
  
  Revision  Changes    Path
  1.22      +5 -2      cocoon-lenya/src/java/org/apache/lenya/cms/publication/Publication.java
  
  Index: Publication.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/publication/Publication.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- Publication.java	7 Aug 2003 15:50:27 -0000	1.21
  +++ Publication.java	8 Aug 2003 08:17:57 -0000	1.22
  @@ -293,7 +293,10 @@
       public DefaultSiteTree getSiteTree(String area) throws SiteTreeException {
   
           DefaultSiteTree sitetree = null;
  -
  +		
  +		if (siteTrees == null) {
  +			siteTrees = new HashMap();	 
  +		}
           if (siteTrees.containsKey(area)) {
               sitetree = (DefaultSiteTree)siteTrees.get(area);
           } else {
  
  
  

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


Mime
View raw message