You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by de...@apache.org on 2013/11/01 15:37:01 UTC
git commit: https://issues.apache.org/jira/browse/AMQ-3725 - close
delegated file only if not null
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 <de...@nighttale.net>
Authored: Fri Nov 1 14:02:49 2013 +0100
Committer: Dejan Bosanac <de...@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