accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject [2/3] git commit: ACCUMULO-3025 check for null pointer
Date Tue, 05 Aug 2014 14:03:37 GMT
ACCUMULO-3025 check for null pointer


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/2bbef48e
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/2bbef48e
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/2bbef48e

Branch: refs/heads/1.6.1-SNAPSHOT
Commit: 2bbef48e70a24025266d6a1c8bb6b9df1eeb3e72
Parents: c922a94
Author: Eric C. Newton <eric.newton@gmail.com>
Authored: Tue Aug 5 09:59:05 2014 -0400
Committer: Eric C. Newton <eric.newton@gmail.com>
Committed: Tue Aug 5 09:59:05 2014 -0400

----------------------------------------------------------------------
 .../apache/accumulo/start/classloader/vfs/ContextManager.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/2bbef48e/start/src/main/java/org/apache/accumulo/start/classloader/vfs/ContextManager.java
----------------------------------------------------------------------
diff --git a/start/src/main/java/org/apache/accumulo/start/classloader/vfs/ContextManager.java
b/start/src/main/java/org/apache/accumulo/start/classloader/vfs/ContextManager.java
index e1ff55e..f23494a 100644
--- a/start/src/main/java/org/apache/accumulo/start/classloader/vfs/ContextManager.java
+++ b/start/src/main/java/org/apache/accumulo/start/classloader/vfs/ContextManager.java
@@ -51,7 +51,9 @@ public class ContextManager {
     
     synchronized void close() {
       closed = true;
-      loader.close();
+      if (loader != null) {
+        loader.close();
+      }
       loader = null;
     }
   }


Mime
View raw message