incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [3/4] git commit: Fixing NPE.
Date Mon, 02 Mar 2015 14:54:51 GMT
Fixing NPE.


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/9b832793
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/9b832793
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/9b832793

Branch: refs/heads/master
Commit: 9b832793b4d06ce165f0066ac62fb619d3ccaacb
Parents: b4dfa04
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Mon Mar 2 09:46:15 2015 -0500
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Mon Mar 2 09:46:15 2015 -0500

----------------------------------------------------------------------
 .../org/apache/blur/manager/writer/BlurIndexSimpleWriter.java  | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/9b832793/blur-core/src/main/java/org/apache/blur/manager/writer/BlurIndexSimpleWriter.java
----------------------------------------------------------------------
diff --git a/blur-core/src/main/java/org/apache/blur/manager/writer/BlurIndexSimpleWriter.java
b/blur-core/src/main/java/org/apache/blur/manager/writer/BlurIndexSimpleWriter.java
index 0bbcd54..975022a 100644
--- a/blur-core/src/main/java/org/apache/blur/manager/writer/BlurIndexSimpleWriter.java
+++ b/blur-core/src/main/java/org/apache/blur/manager/writer/BlurIndexSimpleWriter.java
@@ -663,8 +663,10 @@ public class BlurIndexSimpleWriter extends BlurIndex {
     }
 
     public void cleanupFiles(List<Path> unsortedPaths, Path sorted) throws IOException
{
-      for (Path p : unsortedPaths) {
-        _fileSystem.delete(p, false);
+      if (unsortedPaths != null) {
+        for (Path p : unsortedPaths) {
+          _fileSystem.delete(p, false);
+        }
       }
       if (sorted != null) {
         _fileSystem.delete(sorted, false);


Mime
View raw message