accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject [1/4] git commit: ACCUMULO-2202 catch all runtime exceptions, not just NPE
Date Thu, 16 Jan 2014 15:42:24 GMT
Updated Branches:
  refs/heads/master 9338b522f -> 3f21e5d93


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/master
Commit: 91be551f655bf0a1d80493c95eafadd0025cfe40
Parents: 5fdecd7
Author: Eric Newton <eric.newton@gmail.com>
Authored: Thu Jan 16 10:39:24 2014 -0500
Committer: Eric Newton <eric.newton@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) {


Mime
View raw message