lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject svn commit: r312719 - /lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java
Date Mon, 10 Oct 2005 19:33:28 GMT
Author: dnaber
Date: Mon Oct 10 12:33:22 2005
New Revision: 312719

URL: http://svn.apache.org/viewcvs?rev=312719&view=rev
Log:
better exception if temp directory is not readable, by Jeff Turner (bug LUCENE-449)

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java?rev=312719&r1=312718&r2=312719&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java Mon Oct 10 12:33:22
2005
@@ -197,6 +197,8 @@
 
     String lockPrefix = getLockPrefix().toString(); // clear old locks
     files = lockDir.list();
+    if (files == null)
+      throw new IOException("Cannot read lock directory " + lockDir.getAbsolutePath());
     for (int i = 0; i < files.length; i++) {
       if (!files[i].startsWith(lockPrefix))
         continue;



Mime
View raw message