incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [1/2] git commit: Fixing a NPE.
Date Tue, 28 Apr 2015 01:26:28 GMT
Repository: incubator-blur
Updated Branches:
  refs/heads/master 0e4e324ac -> eba5af979


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

Branch: refs/heads/master
Commit: 2da8d8f91c4a02856ee234ba774958cb3d0a08fe
Parents: 0e4e324
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Mon Apr 27 21:25:55 2015 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Mon Apr 27 21:25:55 2015 -0400

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


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/2da8d8f9/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 72a052a..21d4941 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
@@ -425,7 +425,9 @@ public class BlurIndexSimpleWriter extends BlurIndex {
     return new Closeable() {
       @Override
       public void close() throws IOException {
-        blurIndexWriter.close(false);
+        if (blurIndexWriter != null) {
+          blurIndexWriter.close(false);
+        }
       }
     };
   }


Mime
View raw message