lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject svn commit: r1593882 - /lucene/dev/branches/branch_4x/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java
Date Mon, 12 May 2014 03:21:04 GMT
Author: noble
Date: Mon May 12 03:21:04 2014
New Revision: 1593882

URL: http://svn.apache.org/r1593882
Log:
check null or exists before deleting file

Modified:
    lucene/dev/branches/branch_4x/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java

Modified: lucene/dev/branches/branch_4x/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java?rev=1593882&r1=1593881&r2=1593882&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java
(original)
+++ lucene/dev/branches/branch_4x/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java
Mon May 12 03:21:04 2014
@@ -998,6 +998,7 @@ public abstract class SolrTestCaseJ4 ext
   }
 
   public static boolean recurseDelete(File f) {
+    if(f == null || !f.exists()) return false;
     if (f.isDirectory()) {
       for (File sub : f.listFiles()) {
         if (!recurseDelete(sub)) {



Mime
View raw message