incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [2/2] git commit: Hit a bug during startup that caused a NPE.
Date Fri, 28 Jun 2013 18:07:24 GMT
Hit a bug during startup that caused 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/7ef345f8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/7ef345f8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/7ef345f8

Branch: refs/heads/master
Commit: 7ef345f8f01e459435e5b1302754ce12dbe10d0f
Parents: be55844
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Fri Jun 28 14:06:49 2013 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Fri Jun 28 14:06:49 2013 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/blur/store/blockcache/BlockCache.java    | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/7ef345f8/blur-store/src/main/java/org/apache/blur/store/blockcache/BlockCache.java
----------------------------------------------------------------------
diff --git a/blur-store/src/main/java/org/apache/blur/store/blockcache/BlockCache.java b/blur-store/src/main/java/org/apache/blur/store/blockcache/BlockCache.java
index 7777047..4597ffa 100644
--- a/blur-store/src/main/java/org/apache/blur/store/blockcache/BlockCache.java
+++ b/blur-store/src/main/java/org/apache/blur/store/blockcache/BlockCache.java
@@ -262,6 +262,9 @@ public class BlockCache implements Closeable {
   }
 
   public int getSize() {
+    if (_cache == null) {
+      return 0;
+    }
     return _cache.size();
   }
 


Mime
View raw message