activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject git commit: https://issues.apache.org/jira/browse/AMQ-3725 - close delegated file only if not null
Date Fri, 01 Nov 2013 14:37:01 GMT
Updated Branches:
  refs/heads/trunk 8a8fcb6ef -> 5dacae368


https://issues.apache.org/jira/browse/AMQ-3725 - close delegated file only if not null


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/5dacae36
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/5dacae36
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/5dacae36

Branch: refs/heads/trunk
Commit: 5dacae368b125cd6371bc5d74cb1820ba0a5ca5a
Parents: 8a8fcb6
Author: Dejan Bosanac <dejan@nighttale.net>
Authored: Fri Nov 1 14:02:49 2013 +0100
Committer: Dejan Bosanac <dejan@nighttale.net>
Committed: Fri Nov 1 14:03:20 2013 +0100

----------------------------------------------------------------------
 .../org/apache/activemq/util/RecoverableRandomAccessFile.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/5dacae36/activemq-kahadb-store/src/main/java/org/apache/activemq/util/RecoverableRandomAccessFile.java
----------------------------------------------------------------------
diff --git a/activemq-kahadb-store/src/main/java/org/apache/activemq/util/RecoverableRandomAccessFile.java
b/activemq-kahadb-store/src/main/java/org/apache/activemq/util/RecoverableRandomAccessFile.java
index fbb3212..35c1586 100644
--- a/activemq-kahadb-store/src/main/java/org/apache/activemq/util/RecoverableRandomAccessFile.java
+++ b/activemq-kahadb-store/src/main/java/org/apache/activemq/util/RecoverableRandomAccessFile.java
@@ -56,7 +56,9 @@ public class RecoverableRandomAccessFile implements java.io.DataOutput,
java.io.
 
     @Override
     public void close() throws IOException {
-        raf.close();
+        if (raf != null) {
+            raf.close();
+        }
     }
 
     @Override


Mime
View raw message