You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by dn...@apache.org on 2005/10/10 21:33:28 UTC
svn commit: r312719 -
/lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java
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;