Return-Path: Delivered-To: apmail-lucene-java-commits-archive@www.apache.org Received: (qmail 43192 invoked from network); 10 Oct 2005 19:33:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Oct 2005 19:33:52 -0000 Received: (qmail 67823 invoked by uid 500); 10 Oct 2005 19:33:51 -0000 Delivered-To: apmail-lucene-java-commits-archive@lucene.apache.org Received: (qmail 67800 invoked by uid 500); 10 Oct 2005 19:33:51 -0000 Mailing-List: contact java-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-commits@lucene.apache.org Received: (qmail 67789 invoked by uid 99); 10 Oct 2005 19:33:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2005 12:33:51 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 10 Oct 2005 12:33:53 -0700 Received: (qmail 42820 invoked by uid 65534); 10 Oct 2005 19:33:30 -0000 Message-ID: <20051010193330.42770.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r312719 - /lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java Date: Mon, 10 Oct 2005 19:33:28 -0000 To: java-commits@lucene.apache.org From: dnaber@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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;