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;
}
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.