lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gre...@apache.org
Subject cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/publication DefaultDocument.java
Date Fri, 08 Aug 2003 08:35:58 GMT
gregor      2003/08/08 01:35:58

  Modified:    src/java/org/apache/lenya/cms/publication
                        DefaultDocument.java
  Log:
  we need to set the area before we call the DublinCore constructor or we'll get a NPE
  
  Revision  Changes    Path
  1.21      +6 -3      cocoon-lenya/src/java/org/apache/lenya/cms/publication/DefaultDocument.java
  
  Index: DefaultDocument.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/publication/DefaultDocument.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- DefaultDocument.java	31 Jul 2003 11:56:42 -0000	1.20
  +++ DefaultDocument.java	8 Aug 2003 08:35:58 -0000	1.21
  @@ -105,9 +105,11 @@
   
           assert (publication != null) && !"".equals(publication);
           this.publication = publication;
  +
  +		setArea(area);
  +
   		this.dublincore =  new DublinCore(this);
   
  -        setArea(area);
       }
   
   	/**
  @@ -124,9 +126,10 @@
   		assert (publication != null) && !"".equals(publication);
   		this.publication = publication;
   		this.language = language;
  +		setArea(area);
  +
   		this.dublincore =  new DublinCore(this);
   
  -		setArea(area);
   	}
   
       /**
  
  
  

---------------------------------------------------------------------
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