You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ec...@apache.org on 2014/01/16 16:41:51 UTC
git commit: ACCUMULO-2202 catch all runtime exceptions, not just NPE
Updated Branches:
refs/heads/1.4.5-SNAPSHOT 5fdecd72e -> 91be551f6
ACCUMULO-2202 catch all runtime exceptions, not just NPE
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/91be551f
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/91be551f
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/91be551f
Branch: refs/heads/1.4.5-SNAPSHOT
Commit: 91be551f655bf0a1d80493c95eafadd0025cfe40
Parents: 5fdecd7
Author: Eric Newton <er...@gmail.com>
Authored: Thu Jan 16 10:39:24 2014 -0500
Committer: Eric Newton <er...@gmail.com>
Committed: Thu Jan 16 10:39:24 2014 -0500
----------------------------------------------------------------------
.../java/org/apache/accumulo/core/file/BloomFilterLayer.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/accumulo/blob/91be551f/src/core/src/main/java/org/apache/accumulo/core/file/BloomFilterLayer.java
----------------------------------------------------------------------
diff --git a/src/core/src/main/java/org/apache/accumulo/core/file/BloomFilterLayer.java b/src/core/src/main/java/org/apache/accumulo/core/file/BloomFilterLayer.java
index f580a12..98f82e1 100644
--- a/src/core/src/main/java/org/apache/accumulo/core/file/BloomFilterLayer.java
+++ b/src/core/src/main/java/org/apache/accumulo/core/file/BloomFilterLayer.java
@@ -249,11 +249,11 @@ public class BloomFilterLayer {
} catch (IllegalAccessException e) {
LOG.error("Illegal acess exception", e);
bloomFilter = null;
- } catch (NullPointerException npe) {
+ } catch (RuntimeException rte) {
if (!closed)
- throw npe;
+ throw rte;
else
- LOG.debug("Can't open BloomFilter, NPE after closed ", npe);
+ LOG.debug("Can't open BloomFilter, RTE after closed ", rte);
} finally {
if (in != null) {