incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject git commit: Fixing NPE.
Date Thu, 25 Jun 2015 15:13:46 GMT
Repository: incubator-blur
Updated Branches:
  refs/heads/master 1c7aba261 -> 198586909


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/19858690
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/19858690
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/19858690

Branch: refs/heads/master
Commit: 1985869099fefa12f90ee386a736401e2c4bc04d
Parents: 1c7aba2
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Thu Jun 25 11:13:30 2015 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Thu Jun 25 11:13:30 2015 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/blur/mapreduce/lib/update/Driver.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/19858690/blur-mapred/src/main/java/org/apache/blur/mapreduce/lib/update/Driver.java
----------------------------------------------------------------------
diff --git a/blur-mapred/src/main/java/org/apache/blur/mapreduce/lib/update/Driver.java b/blur-mapred/src/main/java/org/apache/blur/mapreduce/lib/update/Driver.java
index 9051daf..7447673 100644
--- a/blur-mapred/src/main/java/org/apache/blur/mapreduce/lib/update/Driver.java
+++ b/blur-mapred/src/main/java/org/apache/blur/mapreduce/lib/update/Driver.java
@@ -144,7 +144,9 @@ public class Driver extends Configured implements Tool {
         LOG.error("Indexing job failed!");
         movePathList(fileSystem, newData, inprogressPathList);
       }
-      client.removeSnapshot(table, MRUPDATE_SNAPSHOT);
+      if (client != null) {
+        client.removeSnapshot(table, MRUPDATE_SNAPSHOT);
+      }
     }
 
     if (success) {


Mime
View raw message