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 2008/02/21 23:46:09 UTC

svn commit: r630038 - /lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySourceValidity.java

Author: andreas
Date: Thu Feb 21 14:46:07 2008
New Revision: 630038

URL: http://svn.apache.org/viewvc?rev=630038&view=rev
Log:
Don't try to obtain last modification date of non-existing sources.

Modified:
    lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySourceValidity.java

Modified: lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySourceValidity.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySourceValidity.java?rev=630038&r1=630037&r2=630038&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySourceValidity.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySourceValidity.java Thu Feb 21 14:46:07 2008
@@ -34,7 +34,7 @@
      */
     public RepositorySourceValidity(RepositorySource source) {
         this.sourceUri = source.getSourceURI();
-        this.lastModified = source.getLastModified();
+        this.lastModified = source.exists() ? source.getLastModified() : 0;
     }
 
     public int isValid() {



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