You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2004/01/06 18:55:49 UTC

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

michi       2004/01/06 09:55:49

  Modified:    src/java/org/apache/lenya/cms/publication
                        DublinCoreImpl.java
  Log:
  FIXME re NullPointerException
  
  Revision  Changes    Path
  1.2       +3 -2      cocoon-lenya/src/java/org/apache/lenya/cms/publication/DublinCoreImpl.java
  
  Index: DublinCoreImpl.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/publication/DublinCoreImpl.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DublinCoreImpl.java	28 Aug 2003 09:51:53 -0000	1.1
  +++ DublinCoreImpl.java	6 Jan 2004 17:55:49 -0000	1.2
  @@ -1,5 +1,4 @@
   /*
  -$Id$
   <License>
   
    ============================================================================
  @@ -75,6 +74,7 @@
    * This class uses the dublin core specification from 2003-03-04.
    *
    * @author <a href="mailto:gregor@apache.org">Gregor J. Rothfuss</a>
  + * @version $Id$
    */
   public class DublinCoreImpl implements DublinCore {
       private Document cmsdocument;
  @@ -227,6 +227,7 @@
               throw new DocumentException(e);
           }
               
  +        // FIXME: what if "lenya:meta" element doesn't exist yet? Currently a NullPointerException will be thrown!
           Element metaElement = getMetaElement(doc);
   
           String[] namespaces = { DC_NAMESPACE, DCTERMS_NAMESPACE };
  @@ -493,4 +494,4 @@
           elements.put(ELEMENT_RIGHTS, rights);
       }
   
  -}
  \ No newline at end of file
  +}
  
  
  

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