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 2009/01/02 12:13:26 UTC

svn commit: r730698 - /lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNodeMetaDataHandler.java

Author: andreas
Date: Fri Jan  2 03:13:26 2009
New Revision: 730698

URL: http://svn.apache.org/viewvc?rev=730698&view=rev
Log:
SourceNodeMetaDataHandler.getLastModified(): return -1 instead of throwing exception if meta data content doesn't exist.

Modified:
    lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNodeMetaDataHandler.java

Modified: lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNodeMetaDataHandler.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNodeMetaDataHandler.java?rev=730698&r1=730697&r2=730698&view=diff
==============================================================================
--- lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNodeMetaDataHandler.java (original)
+++ lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNodeMetaDataHandler.java Fri Jan  2 03:13:26 2009
@@ -262,7 +262,7 @@
     }
 
     protected long getLastModified() throws RepositoryException {
-        return this.content.getLastModified();
+        return this.content.exists() ? this.content.getLastModified() : -1;
     }
 
 }



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